about summary refs log tree commit diff stats
path: root/tests/unittests/test_cmd_rooms.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-05-05 23:51:49 +0100
committerJames Booth <boothj5@gmail.com>2016-05-05 23:51:49 +0100
commit3bb1f1241050d227932d5153abf49fdce9939efb (patch)
tree9c8f317581a7aac2d7ab914a454eaf80cd21d643 /tests/unittests/test_cmd_rooms.c
parentf6fa63b374cdc07084a472a2067546879809ec89 (diff)
downloadprofani-tty-3bb1f1241050d227932d5153abf49fdce9939efb.tar.gz
Add session.c
Diffstat (limited to 'tests/unittests/test_cmd_rooms.c')
-rw-r--r--tests/unittests/test_cmd_rooms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unittests/test_cmd_rooms.c b/tests/unittests/test_cmd_rooms.c
index 663073f3..b312f7b3 100644
--- a/tests/unittests/test_cmd_rooms.c
+++ b/tests/unittests/test_cmd_rooms.c
@@ -18,7 +18,7 @@
 
 static void test_with_connection_status(jabber_conn_status_t status)
 {
-    will_return(jabber_get_connection_status, status);
+    will_return(connection_get_status, status);
 
     expect_cons_show("You are not currently connected.");
 
@@ -58,7 +58,7 @@ void cmd_rooms_uses_account_default_when_no_arg(void **state)
     ProfAccount *account = account_new("testaccount", NULL, NULL, NULL, TRUE, NULL, 0, NULL, NULL, NULL,
         0, 0, 0, 0, 0, strdup("default_conf_server"), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
     will_return(jabber_get_account_name, "account_name");
     expect_any(accounts_get_account, name);
     will_return(accounts_get_account, account);
@@ -73,7 +73,7 @@ void cmd_rooms_arg_used_when_passed(void **state)
 {
     gchar *args[] = { "conf_server_arg" };
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
 
     expect_string(iq_room_list_request, conferencejid, "conf_server_arg");