From 993cbb4fd7cc5ac7aee2bd77be8cf5f6c4e9d372 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Tue, 10 Dec 2024 16:47:20 +0100 Subject: [PATCH] Run cleanup after each integration test This is needed to get rid of posts created in tests to prevent test interdependency [MAILPOET-6335] --- .../php/email-editor/tests/integration/_bootstrap.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/php/email-editor/tests/integration/_bootstrap.php b/packages/php/email-editor/tests/integration/_bootstrap.php index 36c0276d30..f4145a81da 100644 --- a/packages/php/email-editor/tests/integration/_bootstrap.php +++ b/packages/php/email-editor/tests/integration/_bootstrap.php @@ -105,6 +105,14 @@ abstract class MailPoetTest extends \Codeception\TestCase\Test { // phpcs:ignore parent::setUp(); } + /** + * Tear down after each test. + */ + public function _after() { + parent::_after(); + $this->tester->cleanup(); + } + /** * Check if the HTML is valid. *