Refactor subscription form processing

[MAILPOET-1689]
This commit is contained in:
Rostislav Wolny
2018-12-12 11:00:08 +01:00
parent 5190c23274
commit ece5e9a9d1
7 changed files with 48 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ namespace MailPoet\Test\Newsletter\Scheduler;
use Carbon\Carbon;
use Codeception\Util\Fixtures;
use Mailpoet\Config\Hooks;
use MailPoet\DI\ContainerWrapper;
use MailPoet\Models\Newsletter;
use MailPoet\Models\NewsletterOption;
use MailPoet\Models\NewsletterOptionField;
@@ -696,7 +697,7 @@ class SchedulerTest extends \MailPoetTest {
}
function testUnsearchablePostTypeDoesNotSchedulePostNotification() {
$hook = new Hooks;
$hook = new Hooks(ContainerWrapper::getInstance());
$newsletter = $this->_createNewsletter(Newsletter::TYPE_NOTIFICATION);