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

@@ -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);
}
}