banner: fix test that was enforcing the old behavior

This commit is contained in:
Enno Rehling 2021-09-12 20:10:49 +02:00
parent f40569033d
commit 6a26ed5897
1 changed files with 2 additions and 3 deletions

View File

@ -1312,7 +1312,6 @@ static void test_banner_cmd(CuTest *tc) {
order *ord;
test_setup();
mt_create_error(125);
mt_create_va(mt_new("changebanner", NULL), "value:string", MT_NEW_END);
u = test_create_unit(f = test_create_faction(), test_create_region(0, 0, NULL));
@ -1325,8 +1324,8 @@ static void test_banner_cmd(CuTest *tc) {
ord = create_order(K_BANNER, f->locale, NULL);
banner_cmd(u, ord);
CuAssertStrEquals(tc, "Hodor!", faction_getbanner(f));
CuAssertPtrNotNull(tc, test_find_messagetype(u->faction->msgs, "error125"));
CuAssertStrEquals(tc, NULL, faction_getbanner(f));
CuAssertPtrNotNull(tc, test_find_messagetype(u->faction->msgs, "changebanner"));
free_order(ord);
test_clear_messages(f);