Fix flakey integration test
[MAILPOET-3336]
This commit is contained in:
@@ -29,6 +29,8 @@ class WPTest extends \MailPoetTest {
|
|||||||
parent::_before();
|
parent::_before();
|
||||||
$this->settings = $this->diContainer->get(SettingsController::class);
|
$this->settings = $this->diContainer->get(SettingsController::class);
|
||||||
$this->wpSegment = $this->diContainer->get(WP::class);
|
$this->wpSegment = $this->diContainer->get(WP::class);
|
||||||
|
$currentTime = Carbon::now();
|
||||||
|
Carbon::setTestNow($currentTime);
|
||||||
$this->cleanData();
|
$this->cleanData();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -483,6 +485,7 @@ class WPTest extends \MailPoetTest {
|
|||||||
|
|
||||||
public function _after() {
|
public function _after() {
|
||||||
$this->cleanData();
|
$this->cleanData();
|
||||||
|
Carbon::setTestNow();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function cleanData() {
|
private function cleanData() {
|
||||||
|
Reference in New Issue
Block a user