Files
piratepoet/tests/integration/Config/HooksTest.php
Pavel Dohnal 3d750c5bb8 Move post notification scheduling to service
[MAILPOET-2348]
2019-09-11 19:16:21 +01:00

14 lines
367 B
PHP

<?php
namespace MailPoet\Test\Config;
use MailPoet\Config\Hooks;
use MailPoet\DI\ContainerWrapper;
class HooksTest extends \MailPoetTest {
function testItHooksSchedulerToMultiplePostTypes() {
$hooks = ContainerWrapper::getInstance()->get(Hooks::class);
$hooks->setupPostNotifications();
expect(has_filter('transition_post_status'))->notEmpty();
}
}