diff options
author | James Booth <boothj5@gmail.com> | 2014-12-25 00:02:18 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-12-25 00:02:18 +0000 |
commit | c47b4261f3e36b10557409c167db5f827ba972be (patch) | |
tree | 2cbd966a3ca36483697490bf00b5ec2442e5a594 /tests/test_cmd_statuses.c | |
parent | a871ad800464070f9658439be284364c48b3dbd8 (diff) | |
download | profani-tty-c47b4261f3e36b10557409c167db5f827ba972be.tar.gz |
Added cmd_statuses tests
Diffstat (limited to 'tests/test_cmd_statuses.c')
-rw-r--r-- | tests/test_cmd_statuses.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/test_cmd_statuses.c b/tests/test_cmd_statuses.c index f15dd820..ed37021a 100644 --- a/tests/test_cmd_statuses.c +++ b/tests/test_cmd_statuses.c @@ -9,13 +9,12 @@ #include "config/preferences.h" #include "ui/ui.h" -#include "ui/mock_ui.h" +#include "ui/stub_ui.h" #include "command/commands.h" void cmd_statuses_shows_usage_when_bad_subcmd(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); help->usage = "some usage"; gchar *args[] = { "badcmd", NULL }; @@ -30,7 +29,6 @@ void cmd_statuses_shows_usage_when_bad_subcmd(void **state) void cmd_statuses_shows_usage_when_bad_console_setting(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); help->usage = "some usage"; gchar *args[] = { "console", "badsetting", NULL }; @@ -45,7 +43,6 @@ void cmd_statuses_shows_usage_when_bad_console_setting(void **state) void cmd_statuses_shows_usage_when_bad_chat_setting(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); help->usage = "some usage"; gchar *args[] = { "chat", "badsetting", NULL }; @@ -60,7 +57,6 @@ void cmd_statuses_shows_usage_when_bad_chat_setting(void **state) void cmd_statuses_shows_usage_when_bad_muc_setting(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); help->usage = "some usage"; gchar *args[] = { "muc", "badsetting", NULL }; @@ -75,7 +71,6 @@ void cmd_statuses_shows_usage_when_bad_muc_setting(void **state) void cmd_statuses_console_sets_all(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "console", "all", NULL }; @@ -93,7 +88,6 @@ void cmd_statuses_console_sets_all(void **state) void cmd_statuses_console_sets_online(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "console", "online", NULL }; @@ -111,7 +105,6 @@ void cmd_statuses_console_sets_online(void **state) void cmd_statuses_console_sets_none(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "console", "none", NULL }; @@ -129,7 +122,6 @@ void cmd_statuses_console_sets_none(void **state) void cmd_statuses_chat_sets_all(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "chat", "all", NULL }; @@ -147,7 +139,6 @@ void cmd_statuses_chat_sets_all(void **state) void cmd_statuses_chat_sets_online(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "chat", "online", NULL }; @@ -165,7 +156,6 @@ void cmd_statuses_chat_sets_online(void **state) void cmd_statuses_chat_sets_none(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "chat", "none", NULL }; @@ -183,7 +173,6 @@ void cmd_statuses_chat_sets_none(void **state) void cmd_statuses_muc_sets_all(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "muc", "all", NULL }; @@ -201,7 +190,6 @@ void cmd_statuses_muc_sets_all(void **state) void cmd_statuses_muc_sets_online(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "muc", "online", NULL }; @@ -219,7 +207,6 @@ void cmd_statuses_muc_sets_online(void **state) void cmd_statuses_muc_sets_none(void **state) { - mock_cons_show(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "muc", "none", NULL }; |