Add WooCommerce plugin to acceptance tests

[MAILPOET-1936]
This commit is contained in:
Rostislav Wolny
2019-03-19 16:59:37 +01:00
committed by M. Shull
parent 36ba91335d
commit 3c41b671ed
3 changed files with 453 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@@ -216,4 +216,13 @@ class AcceptanceTester extends \Codeception\Actor {
return (int)getenv('WAIT_TIMEOUT') ?: $timeout; return (int)getenv('WAIT_TIMEOUT') ?: $timeout;
} }
public function activateWooCommerce() {
$I = $this;
$I->cli('plugin activate woocommerce --allow-root');
}
public function deactivateWooCommerce() {
$I = $this;
$I->cli('plugin deactivate woocommerce --allow-root');
}
} }

View File

@@ -56,6 +56,9 @@ RewriteRule . index.php [L]
" > .htaccess " > .htaccess
fi fi
echo "Installing WooCommerce"
wp plugin install woocommerce --allow-root
else else
if [ -z "${MULTISITE}" ] && $(wp-su core is-installed --network) if [ -z "${MULTISITE}" ] && $(wp-su core is-installed --network)