Run cleanup after each integration test

This is needed to get rid of posts created in tests to prevent test interdependency
[MAILPOET-6335]
This commit is contained in:
Rostislav Wolny
2024-12-10 16:47:20 +01:00
committed by Aschepikov
parent fdc0d15b63
commit 993cbb4fd7

View File

@@ -105,6 +105,14 @@ abstract class MailPoetTest extends \Codeception\TestCase\Test { // phpcs:ignore
parent::setUp(); parent::setUp();
} }
/**
* Tear down after each test.
*/
public function _after() {
parent::_after();
$this->tester->cleanup();
}
/** /**
* Check if the HTML is valid. * Check if the HTML is valid.
* *