Remove unnecessary cleanup code
MAILPOET-5145
This commit is contained in:
committed by
John Oleksowicz
parent
57eb438eb8
commit
c75bc388c9
@ -6,15 +6,9 @@ use MailPoet\Entities\DynamicSegmentFilterData;
|
||||
use MailPoet\Entities\DynamicSegmentFilterEntity;
|
||||
use MailPoet\Entities\SegmentEntity;
|
||||
use MailPoet\Entities\SubscriberEntity;
|
||||
use MailPoet\Entities\SubscriberSegmentEntity;
|
||||
use MailPoet\Segments\DynamicSegments\Filters\UserRole;
|
||||
|
||||
class DynamicSegmentsResponseBuilderTest extends \MailPoetTest {
|
||||
public function _before() {
|
||||
parent::_before();
|
||||
$this->cleanup();
|
||||
}
|
||||
|
||||
public function testItBuildsGetResponse() {
|
||||
$name = 'Response Listings Builder Test';
|
||||
$description = 'Testing description';
|
||||
@ -118,16 +112,4 @@ class DynamicSegmentsResponseBuilderTest extends \MailPoetTest {
|
||||
$this->entityManager->persist($dynamicFilter);
|
||||
return $segment;
|
||||
}
|
||||
|
||||
private function cleanup() {
|
||||
$this->truncateEntity(SegmentEntity::class);
|
||||
$this->truncateEntity(SubscriberEntity::class);
|
||||
$this->truncateEntity(SubscriberSegmentEntity::class);
|
||||
$this->truncateEntity(DynamicSegmentFilterEntity::class);
|
||||
}
|
||||
|
||||
public function _after() {
|
||||
parent::_after();
|
||||
$this->cleanup();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user