Files
piratepoet/tests/integration/Config/InitializerTest.php
Amine Ben hammou 43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00

16 lines
414 B
PHP

<?php
namespace MailPoet\Test\Config;
class InitializerTest extends \MailPoetTest {
public 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();
}
}