diff options
author | James Booth <boothj5@gmail.com> | 2014-12-23 19:51:12 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-12-23 19:51:12 +0000 |
commit | 69fe6c4d21d885f1397172605e8babe639a945c5 (patch) | |
tree | 501a964b685b0e5904a9ad396aff45a024477854 /tests/test_cmd_account.c | |
parent | 5be9ac3243c79eb552d628d2b8642290eed564bd (diff) | |
download | profani-tty-69fe6c4d21d885f1397172605e8babe639a945c5.tar.gz |
cmd_account_shows_account_when_connected_and_no_args
Diffstat (limited to 'tests/test_cmd_account.c')
-rw-r--r-- | tests/test_cmd_account.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/test_cmd_account.c b/tests/test_cmd_account.c index 8610ccc4..e8246fc4 100644 --- a/tests/test_cmd_account.c +++ b/tests/test_cmd_account.c @@ -13,6 +13,7 @@ #include "ui/stub_ui.h" #include "config/accounts.h" +#include "config/stub_accounts.h" #include "command/commands.h" @@ -32,11 +33,9 @@ void cmd_account_shows_usage_when_not_connected_and_no_args(void **state) free(help); } -/* + void cmd_account_shows_account_when_connected_and_no_args(void **state) { - mock_cons_show_account(); - mock_accounts_get_account(); CommandHelp *help = malloc(sizeof(CommandHelp)); ProfAccount *account = account_new("jabber_org", "me@jabber.org", NULL, TRUE, NULL, 0, NULL, NULL, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL); @@ -44,8 +43,7 @@ void cmd_account_shows_account_when_connected_and_no_args(void **state) mock_connection_status(JABBER_CONNECTED); mock_connection_account_name("account_name"); - - accounts_get_account_return(account); + mock_accounts_get_account(account); expect_cons_show_account(account); @@ -54,7 +52,7 @@ void cmd_account_shows_account_when_connected_and_no_args(void **state) free(help); } - +/* void cmd_account_list_shows_accounts(void **state) { mock_cons_show_account_list(); |