Bootstrap email-editor integration tests

I tried to minimize the code repetition.
[MAILPOET-6216]
This commit is contained in:
Jan Lysý
2024-09-16 14:14:01 +02:00
committed by Jan Lysý
parent d38e6bb1b9
commit 1af3c09422
8 changed files with 293 additions and 29 deletions

View File

@ -219,10 +219,14 @@ mysql -u wordpress -pwordpress wordpress -h mysql -e "SELECT @@global.sql_mode"
# print tables info
mysql -u wordpress -pwordpress wordpress -h mysql -e "SELECT TABLE_NAME, ENGINE, TABLE_COLLATION FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'wordpress'"
if [[ $WITH_PREMIUM == "1" ]]; then
cd /wp-core/wp-content/plugins/mailpoet-premium
if [[ $PACKAGE_NAME == "email-editor" ]]; then
cd /wp-core/wp-content/plugins/packages/php/email-editor
else
cd /wp-core/wp-content/plugins/mailpoet
if [[ $WITH_PREMIUM == "1" ]]; then
cd /wp-core/wp-content/plugins/mailpoet-premium
else
cd /wp-core/wp-content/plugins/mailpoet
fi
fi
/wp-core/wp-content/plugins/mailpoet/vendor/bin/codecept run $TEST_TYPE $@ -vvv