about summary refs log tree commit diff stats
path: root/tests/unittests/test_cmd_bookmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_cmd_bookmark.c')
-rw-r--r--tests/unittests/test_cmd_bookmark.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/unittests/test_cmd_bookmark.c b/tests/unittests/test_cmd_bookmark.c
index eafae9b6..49ea7b10 100644
--- a/tests/unittests/test_cmd_bookmark.c
+++ b/tests/unittests/test_cmd_bookmark.c
@@ -24,7 +24,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.");
 
     gboolean result = cmd_bookmark(NULL, CMD_BOOKMARK, NULL);
@@ -62,7 +62,7 @@ void cmd_bookmark_shows_usage_when_no_args(void **state)
     ProfWin window;
     window.type = WIN_CONSOLE;
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
 
     expect_string(cons_bad_cmd_usage, cmd, CMD_BOOKMARK);
 
@@ -127,7 +127,7 @@ void cmd_bookmark_list_shows_bookmarks(void **state)
     bookmarks = g_list_append(bookmarks, bm4);
     bookmarks = g_list_append(bookmarks, bm5);
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
     will_return(bookmark_get_list, bookmarks);
 
     // TODO - Custom list compare
@@ -147,7 +147,7 @@ void cmd_bookmark_add_shows_message_when_invalid_jid(void **state)
     ProfWin window;
     window.type = WIN_CONSOLE;
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
 
     expect_cons_show("Can't add bookmark with JID 'room'; should be 'room@domain.tld'");
 
@@ -162,7 +162,7 @@ void cmd_bookmark_add_adds_bookmark_with_jid(void **state)
     ProfWin window;
     window.type = WIN_CONSOLE;
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
 
     expect_string(bookmark_add, jid, jid);
     expect_any(bookmark_add, nick);
@@ -184,7 +184,7 @@ void cmd_bookmark_add_adds_bookmark_with_jid_nick(void **state)
     ProfWin window;
     window.type = WIN_CONSOLE;
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
 
     expect_string(bookmark_add, jid, jid);
     expect_string(bookmark_add, nick, nick);
@@ -205,7 +205,7 @@ void cmd_bookmark_add_adds_bookmark_with_jid_autojoin(void **state)
     ProfWin window;
     window.type = WIN_CONSOLE;
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
 
     expect_string(bookmark_add, jid, jid);
     expect_any(bookmark_add, nick);
@@ -227,7 +227,7 @@ void cmd_bookmark_add_adds_bookmark_with_jid_nick_autojoin(void **state)
     ProfWin window;
     window.type = WIN_CONSOLE;
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
 
     expect_string(bookmark_add, jid, jid);
     expect_string(bookmark_add, nick, nick);
@@ -248,7 +248,7 @@ void cmd_bookmark_remove_removes_bookmark(void **state)
     ProfWin window;
     window.type = WIN_CONSOLE;
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
 
     expect_string(bookmark_remove, jid, jid);
     will_return(bookmark_remove, TRUE);
@@ -266,7 +266,7 @@ void cmd_bookmark_remove_shows_message_when_no_bookmark(void **state)
     ProfWin window;
     window.type = WIN_CONSOLE;
 
-    will_return(jabber_get_connection_status, JABBER_CONNECTED);
+    will_return(connection_get_status, JABBER_CONNECTED);
 
     expect_any(bookmark_remove, jid);
     will_return(bookmark_remove, FALSE);