forked from github/server
banner: fix test that was enforcing the old behavior
This commit is contained in:
parent
f40569033d
commit
6a26ed5897
|
@ -1312,7 +1312,6 @@ static void test_banner_cmd(CuTest *tc) {
|
||||||
order *ord;
|
order *ord;
|
||||||
|
|
||||||
test_setup();
|
test_setup();
|
||||||
mt_create_error(125);
|
|
||||||
mt_create_va(mt_new("changebanner", NULL), "value:string", MT_NEW_END);
|
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));
|
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);
|
ord = create_order(K_BANNER, f->locale, NULL);
|
||||||
banner_cmd(u, ord);
|
banner_cmd(u, ord);
|
||||||
CuAssertStrEquals(tc, "Hodor!", faction_getbanner(f));
|
CuAssertStrEquals(tc, NULL, faction_getbanner(f));
|
||||||
CuAssertPtrNotNull(tc, test_find_messagetype(u->faction->msgs, "error125"));
|
CuAssertPtrNotNull(tc, test_find_messagetype(u->faction->msgs, "changebanner"));
|
||||||
free_order(ord);
|
free_order(ord);
|
||||||
test_clear_messages(f);
|
test_clear_messages(f);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue