Use WP transient for lock running migrations

[MAILPOET-3537]
This commit is contained in:
Jan Lysý
2021-05-20 13:59:21 +02:00
committed by Veljko V
parent 86e89f7fc1
commit a0a0313c46
3 changed files with 31 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class SetupTest extends \MailPoetTest {
$this->entityManager,
$this->diContainer->get(WP::class)
);
$router = new Setup($wpStub, new Activator($settings, $populator));
$router = new Setup($wpStub, new Activator($settings, $populator, $wpStub));
$response = $router->reset();
expect($response->status)->equals(APIResponse::STATUS_OK);