Add WooCommerce plugin to acceptance tests
[MAILPOET-1936]
This commit is contained in:
committed by
M. Shull
parent
36ba91335d
commit
3c41b671ed
File diff suppressed because one or more lines are too long
@@ -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');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user