Remove unnecessary cleanup code

MAILPOET-5145
This commit is contained in:
John Oleksowicz
2023-03-28 16:56:16 -05:00
committed by John Oleksowicz
parent 57eb438eb8
commit c75bc388c9
155 changed files with 13 additions and 1378 deletions

View File

@@ -22,7 +22,6 @@ class SubscribersRepositoryTest extends \MailPoetTest {
public function _before() {
parent::_before();
$this->cleanup();
$this->repository = $this->diContainer->get(SubscribersRepository::class);
$this->segmentRepository = $this->diContainer->get(SegmentsRepository::class);
$this->subscriberSegmentRepository = $this->diContainer->get(SubscriberSegmentRepository::class);
@@ -348,12 +347,4 @@ class SubscribersRepositoryTest extends \MailPoetTest {
$this->entityManager->flush();
return $subscirberCustomField;
}
private function cleanup() {
$this->truncateEntity(SubscriberEntity::class);
$this->truncateEntity(SubscriberSegmentEntity::class);
$this->truncateEntity(SubscriberSegmentEntity::class);
$this->truncateEntity(CustomFieldEntity::class);
$this->truncateEntity(SubscriberCustomFieldEntity::class);
}
}