about summary refs log tree commit diff stats
path: root/tests/unittests/test_cmd_alias.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_cmd_alias.c')
-rw-r--r--tests/unittests/test_cmd_alias.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/unittests/test_cmd_alias.c b/tests/unittests/test_cmd_alias.c
index fd8f824f..d1cdaf01 100644
--- a/tests/unittests/test_cmd_alias.c
+++ b/tests/unittests/test_cmd_alias.c
@@ -13,8 +13,9 @@
 
 #include "config/preferences.h"
 
-#include "command/command.h"
-#include "command/commands.h"
+#include "command/cmd_defs.h"
+#include "command/cmd_funcs.h"
+#include "command/cmd_ac.h"
 
 #define CMD_ALIAS "/alias"
 
@@ -77,7 +78,7 @@ void cmd_alias_add_shows_message_when_exists(void **state)
 
     cmd_init();
     prefs_add_alias("hc", "/help commands");
-    cmd_autocomplete_add("/hc");
+    cmd_ac_add("/hc");
 
     expect_cons_show("Command or alias '/hc' already exists.");