Remove old Setting model from integration tests

[MAILPOET-2436]
This commit is contained in:
Jan Jakeš
2019-10-29 18:14:26 +01:00
committed by Jack Kitterhing
parent 7bddf631c5
commit 40c87d50fe
34 changed files with 134 additions and 93 deletions

View File

@ -8,10 +8,10 @@ use MailPoet\Mailer\Mailer;
use MailPoet\Mailer\MailerError;
use MailPoet\Mailer\MailerLog;
use MailPoet\Models\Newsletter;
use MailPoet\Models\Setting;
use MailPoet\Services\AuthorizedEmailsController;
use MailPoet\Services\Bridge;
use MailPoet\Settings\SettingsController;
use MailPoet\Settings\SettingsRepository;
class AuthorizedEmailsControllerTest extends \MailPoetTest {
@ -175,7 +175,7 @@ class AuthorizedEmailsControllerTest extends \MailPoetTest {
}
function _after() {
\ORM::raw_execute('TRUNCATE ' . Setting::$_table);
$this->di_container->get(SettingsRepository::class)->truncate();
\ORM::raw_execute('TRUNCATE ' . Newsletter::$_table);
}
}