about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--tests/test_cmd_statuses.c15
-rw-r--r--tests/testsuite.c3
3 files changed, 4 insertions, 15 deletions
diff --git a/Makefile.am b/Makefile.am
index dd9601fa..ba7fbeb9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -74,6 +74,7 @@ tests_sources = \
 	tests/test_cmd_otr.c tests/test_cmd_otr.h \
 	tests/test_cmd_rooms.c tests/test_cmd_rooms.h \
 	tests/test_cmd_roster.c tests/test_cmd_roster.h \
+	tests/test_cmd_statuses.c tests/test_cmd_statuses.h \
 	tests/test_autocomplete.c tests/test_autocomplete.h \
 	tests/testsuite.c
 
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 };
 
diff --git a/tests/testsuite.c b/tests/testsuite.c
index 981d48bb..278a6c93 100644
--- a/tests/testsuite.c
+++ b/tests/testsuite.c
@@ -320,6 +320,7 @@ int main(int argc, char* argv[]) {
         unit_test(contact_available_when_highest_priority_online),
         unit_test(contact_available_when_highest_priority_chat),
 
+*/
         unit_test(cmd_statuses_shows_usage_when_bad_subcmd),
         unit_test(cmd_statuses_shows_usage_when_bad_console_setting),
         unit_test(cmd_statuses_shows_usage_when_bad_chat_setting),
@@ -351,7 +352,7 @@ int main(int argc, char* argv[]) {
         unit_test_setup_teardown(cmd_statuses_muc_sets_none,
             load_preferences,
             close_preferences),
-
+/*
         unit_test_setup_teardown(statuses_console_defaults_to_all,
             load_preferences,
             close_preferences),