Move temporary automation migrator to a new migration

[MAILPOET-4788]
This commit is contained in:
Jan Jakes
2022-11-10 18:25:22 +03:00
committed by David Remer
parent 8489e63d34
commit 2e328b6d7f
11 changed files with 79 additions and 177 deletions

View File

@@ -6,7 +6,6 @@ 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;
@@ -66,6 +65,5 @@ class SetupTest extends \MailPoetTest {
// 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();
}
}