Files
piratepoet/tests/integration/Config/InitializerTest.php
Jan Jakeš 1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00

16 lines
407 B
PHP

<?php
namespace MailPoet\Test\Config;
class InitializerTest extends \MailPoetTest {
function testItConfiguresHooks() {
global $wp_filter;
$is_hooked = false;
// mailpoet should hook to 'wp_loaded' with priority of 10
foreach ($wp_filter['wp_loaded'][10] as $name => $hook) {
if (preg_match('/postInitialize/', $name)) $is_hooked = true;
}
expect($is_hooked)->true();
}
}