Add SettingsController cache reset to integration tests

[MAILPOET-1757]
This commit is contained in:
Rostislav Wolny
2019-01-25 13:52:42 +01:00
parent f7aecf1d63
commit 4c6e76dd44
100 changed files with 120 additions and 17 deletions

View File

@ -9,6 +9,7 @@ class RequiredCustomFieldValidatorTest extends \MailPoetTest {
private $custom_field;
function _before() {
parent::_before();
\ORM::raw_execute('TRUNCATE ' . CustomField::$_table);
$this->custom_field = CustomField::createOrUpdate([
'name' => 'custom field',
@ -45,4 +46,4 @@ class RequiredCustomFieldValidatorTest extends \MailPoetTest {
$validator->validate(['cf_' . $this->custom_field->id() => '']);
}
}
}