Skip to content

Commit 6c7d387

Browse files
LupulScIT-Raphael
authored andcommitted
Test: add cleanup for multiphp tests
1 parent 7a019a5 commit 6c7d387

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/test.bats

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,20 @@ function validate_webmail_domain() {
691691
validate_web_domain $user $multi_domain "hestia-multiphptest:$test_phpver" 'php-test.php'
692692
rm $HOMEDIR/$user/web/$multi_domain/public_html/php-test.php
693693
}
694+
695+
@test "Multiphp: Cleanup" {
696+
multi_domain="multiphp.${domain}"
697+
698+
run v-delete-web-domain $user $multi_domain 'yes'
699+
assert_success
700+
refute_output
701+
702+
# No php-fpm pool config file must be present
703+
num_fpm_config_files="$(find -L /etc/php/ -name "${multi_domain}.conf" | wc -l)"
704+
assert_equal "$num_fpm_config_files" '0'
705+
}
706+
707+
694708
#----------------------------------------------------------#
695709
# DNS #
696710
#----------------------------------------------------------#

0 commit comments

Comments
 (0)