Fix flakey integration test

[MAILPOET-3336]
This commit is contained in:
Pavel Dohnal
2021-01-21 13:53:40 +01:00
committed by Veljko V
parent 72a2dee636
commit 4e3dda9872

View File

@@ -29,6 +29,8 @@ class WPTest extends \MailPoetTest {
parent::_before();
$this->settings = $this->diContainer->get(SettingsController::class);
$this->wpSegment = $this->diContainer->get(WP::class);
$currentTime = Carbon::now();
Carbon::setTestNow($currentTime);
$this->cleanData();
}
@@ -483,6 +485,7 @@ class WPTest extends \MailPoetTest {
public function _after() {
$this->cleanData();
Carbon::setTestNow();
}
private function cleanData() {