Adjusted tests for newer Brain Monkey compatibility
This commit is contained in:
1 parent
a815ba515c
commit
a797c4f406
6 files changed
+10
-10
No files matched your search
@@ -18,9 +18,9 @@ class HookTest extends LapsTestCase {
|
||||
$stopwatch = new Stopwatch();
|
||||
$collector = new Hook_Collector( $stopwatch, [ 'core' => new Core_Events() ] );
|
||||
|
||||
$this->assertTrue( has_action( 'after_setup_theme', [ $collector, 'after_setup_theme' ] ) );
|
||||
$this->assertTrue( (bool) has_action( 'after_setup_theme', [ $collector, 'after_setup_theme' ] ) );
|
||||
|
||||
$this->assertTrue( has_action( 'plugins_loaded', 'function ($input)' ) );
|
||||
$this->assertTrue( (bool) has_action( 'plugins_loaded', 'function ($input)' ) );
|
||||
|
||||
$collector->after_setup_theme();
|
||||
$stopwatch->start( 'Toolbar' );
|
||||
|
||||
Reference in new issue
Block a user