Inject dependencies to hooks directly

[MAILPOET-1689]
This commit is contained in:
Rostislav Wolny
2018-12-17 15:16:27 +01:00
parent 66a05e1b19
commit f13c340d87
4 changed files with 10 additions and 19 deletions

View File

@ -697,7 +697,7 @@ class SchedulerTest extends \MailPoetTest {
}
function testUnsearchablePostTypeDoesNotSchedulePostNotification() {
$hook = new Hooks(ContainerWrapper::getInstance());
$hook = ContainerWrapper::getInstance()->get(Hooks::class);
$newsletter = $this->_createNewsletter(Newsletter::TYPE_NOTIFICATION);