Temporarily fix reinstall test wiping out automation tables
[MAILPOET-4466]
This commit is contained in:
@ -6,10 +6,13 @@ use Codeception\Stub;
|
||||
use Helper\WordPressHooks as WPHooksHelper;
|
||||
use MailPoet\API\JSON\Response as APIResponse;
|
||||
use MailPoet\API\JSON\v1\Setup;
|
||||
use MailPoet\Automation\Engine\Migrations\Migrator as AutomationMigrator;
|
||||
use MailPoet\Config\Activator;
|
||||
use MailPoet\Config\Populator;
|
||||
use MailPoet\Cron\ActionScheduler\ActionScheduler;
|
||||
use MailPoet\Form\FormsRepository;
|
||||
use MailPoet\Features\FeatureFlagsController;
|
||||
use MailPoet\Features\FeaturesController;
|
||||
use MailPoet\Migrator\Migrator;
|
||||
use MailPoet\Referrals\ReferralDetector;
|
||||
use MailPoet\Segments\WP;
|
||||
@ -59,5 +62,10 @@ class SetupTest extends \MailPoetTest {
|
||||
|
||||
public function _after() {
|
||||
$this->diContainer->get(SettingsRepository::class)->truncate();
|
||||
|
||||
// Temporarily hotfix a side effect of this test, that is, removing automation feature flag
|
||||
// and tables and not setting them back. This will be removed very soon, before MVP release.
|
||||
$this->diContainer->get(FeatureFlagsController::class)->set(FeaturesController::AUTOMATION, true);
|
||||
$this->diContainer->get(AutomationMigrator::class)->createSchema();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user