Files
piratepoet/tests/integration/Config/InitializerTest.php
Jan Jakeš 54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00

16 lines
409 B
PHP

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