Skip to content

Commit 4e4f181

Browse files
committed
TESTS - Check Assistant is installed
1 parent b7ba007 commit 4e4f181

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/test.bats

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ check_required_symlinks() {
7575
check_required_items "symlinks" "${DIR}/tests/required_symlinks.txt" "-L"
7676
}
7777

78+
# Check Aljibe Assistant is installed alongside Aljibe.
79+
check_assistant_is_installed() {
80+
echo -n "Checking if Aljibe Assistant is installed..."
81+
if ddev add-on list --installed | grep -q "aljibe-assistant"; then
82+
echo " Ok."
83+
return 0
84+
else
85+
echo " Failed."
86+
return 1
87+
fi
88+
}
89+
90+
7891
check_services() {
7992
echo "Checking services:"
8093
INSTALLED_SERVICES=$(ddev get --installed)
@@ -127,10 +140,15 @@ check_drupal_admin_access() {
127140
echo "$output" >&3
128141
[ "$status" -eq 0 ]
129142

143+
run check_assistant_is_installed
144+
echo "$output" >&3
145+
[ "$status" -eq 0 ]
130146
check_services >&3
131147
check_project_browse >&3
132148
## Todo Make this test work
133149
# check_drupal_admin_access >&3
150+
151+
134152
}
135153

136154
@test "install from release" {

0 commit comments

Comments
 (0)