diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/config/mock_accounts.c | 1 | ||||
-rw-r--r-- | tests/test_cmd_rooms.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/config/mock_accounts.c b/tests/config/mock_accounts.c index e81aff9b..de83f44a 100644 --- a/tests/config/mock_accounts.c +++ b/tests/config/mock_accounts.c @@ -50,6 +50,7 @@ gchar** accounts_get_list(void) ProfAccount* accounts_get_account(const char * const name) { + check_expected(name); return (ProfAccount *)mock(); } diff --git a/tests/test_cmd_rooms.c b/tests/test_cmd_rooms.c index e58e178d..91581a99 100644 --- a/tests/test_cmd_rooms.c +++ b/tests/test_cmd_rooms.c @@ -56,6 +56,7 @@ void cmd_rooms_uses_account_default_when_no_arg(void **state) will_return(jabber_get_connection_status, JABBER_CONNECTED); will_return(jabber_get_account_name, "account_name"); + expect_string(accounts_get_account, name, "account_name"); will_return(accounts_get_account, account); expect_string(iq_room_list_request, conferencejid, "default_conf_server"); |