Files
piratepoet/tests/integration/Config/InitializerTest.php
Ján Mikláš 3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00

15 lines
406 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();
}
}