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

@@ -13,6 +13,7 @@ use MailPoet\Cron\Workers\KeyCheck\KeyCheckWorkerMockImplementation as MockKeyCh
class KeyCheckWorkerTest extends \MailPoetTest {
function _before() {
parent::_before();
$this->worker = new MockKeyCheckWorker();
}
@@ -70,4 +71,4 @@ class KeyCheckWorkerTest extends \MailPoetTest {
\ORM::raw_execute('TRUNCATE ' . Setting::$_table);
\ORM::raw_execute('TRUNCATE ' . ScheduledTask::$_table);
}
}
}

View File

@@ -8,6 +8,7 @@ use MailPoet\Services\Bridge;
class PremiumKeyCheckTest extends \MailPoetTest {
function _before() {
parent::_before();
$this->premium_key = '123457890abcdef';
$this->worker = new PremiumKeyCheck(microtime(true));
}

View File

@@ -10,6 +10,7 @@ use MailPoet\Services\Bridge;
class SendingServiceKeyCheckTest extends \MailPoetTest {
function _before() {
parent::_before();
$this->mss_key = 'some_key';
$this->worker = new SendingServiceKeyCheck(microtime(true));
}