The plugin was integrated into WooCommerce Core and is no longer available for download. [MAILPOET-5925]
21 lines
569 B
PHP
21 lines
569 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace MailPoet\TestsSupport;
|
|
|
|
use Codeception\Events;
|
|
use Codeception\Extension;
|
|
|
|
class PluginsExtension extends Extension {
|
|
|
|
public static $events = [
|
|
Events::SUITE_BEFORE => 'setupInitialPluginsState',
|
|
];
|
|
|
|
public function setupInitialPluginsState() {
|
|
exec('wp plugin deactivate automatewoo --allow-root');
|
|
exec('wp plugin deactivate woocommerce-memberships --allow-root');
|
|
exec('wp plugin deactivate woocommerce-subscriptions --allow-root');
|
|
exec('wp plugin deactivate woocommerce --allow-root');
|
|
}
|
|
}
|