Files
piratepoet/tests/unit/Config/InitializerTest.php
Vlad f734d47b26 - Extracts database configuration into a separate class
- Conditionally sets the session wait_timeout value
- Updates unit tests
2017-01-17 11:23:00 -05:00

14 lines
367 B
PHP

<?php
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('/setupHooks/', $name)) $is_hooked = true;
}
expect($is_hooked)->true();
}
}