Remove unnecessary cleanup code
MAILPOET-5145
This commit is contained in:
committed by
John Oleksowicz
parent
57eb438eb8
commit
c75bc388c9
@@ -18,7 +18,6 @@ class RequiredCustomFieldValidatorTest extends \MailPoetTest {
|
||||
|
||||
public function _before() {
|
||||
parent::_before();
|
||||
$this->cleanup();
|
||||
$this->customFieldRepository = $this->diContainer->get(CustomFieldsRepository::class);
|
||||
$this->validator = new RequiredCustomFieldValidator($this->customFieldRepository);
|
||||
$this->customField = $this->customFieldRepository->createOrUpdate([
|
||||
@@ -71,9 +70,4 @@ class RequiredCustomFieldValidatorTest extends \MailPoetTest {
|
||||
$this->entityManager->flush();
|
||||
$this->validator->validate(['cf_' . $this->customField->getId() => 'value'], $form);
|
||||
}
|
||||
|
||||
private function cleanup() {
|
||||
$this->truncateEntity(CustomFieldEntity::class);
|
||||
$this->truncateEntity(FormEntity::class);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user