Extract customer creation/cleanup

This also ensures that cleanup always runs after all integration tests

MAILPOET-5145
This commit is contained in:
John Oleksowicz
2023-03-30 17:32:00 -05:00
committed by John Oleksowicz
parent f9d6e65ece
commit cd0b795ac8
75 changed files with 142 additions and 99 deletions

View File

@@ -80,6 +80,7 @@ class ScheduledTaskSubscriberTest extends \MailPoetTest {
}
public function _after() {
parent::_after();
ORM::raw_execute('TRUNCATE ' . ScheduledTask::$_table);
ORM::raw_execute('TRUNCATE ' . ScheduledTaskSubscriber::$_table);
ORM::raw_execute('TRUNCATE ' . Subscriber::$_table);