mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Check expected arg to account_get_account in cmd_rooms test
This commit is contained in:
parent
bf347ab9e0
commit
eff2ef3859
@ -50,6 +50,7 @@ gchar** accounts_get_list(void)
|
||||
|
||||
ProfAccount* accounts_get_account(const char * const name)
|
||||
{
|
||||
check_expected(name);
|
||||
return (ProfAccount *)mock();
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user