diff --git a/tests/unit/lucatume/WPBrowser/Events/Module/WPLoaderTest.php b/tests/unit/lucatume/WPBrowser/Events/Module/WPLoaderTest.php index b6732e49f..47cc6d073 100644 --- a/tests/unit/lucatume/WPBrowser/Events/Module/WPLoaderTest.php +++ b/tests/unit/lucatume/WPBrowser/Events/Module/WPLoaderTest.php @@ -651,7 +651,7 @@ public function should_throw_if_load_only_and_word_press_not_installed(): void $this->assertInIsolation(static function () use ($wpRootDir, $wpLoader) { $wpLoader->_initialize(); - Dispatcher::dispatch(Events::SUITE_BEFORE); + Dispatcher::dispatch(Events::SUITE_INIT); }); } @@ -704,7 +704,7 @@ public function should_load_word_press_before_suite_if_load_only_w_config_files( $actions[] = WPLoader::EVENT_AFTER_LOADONLY; }); - Dispatcher::dispatch(Events::SUITE_BEFORE); + Dispatcher::dispatch(Events::SUITE_INIT); Assert::assertEquals('test_file_002.php', getenv('LOADED_2')); Assert::assertEquals($wpRootDir . '/', ABSPATH); @@ -794,7 +794,7 @@ public function should_not_throw_when_load_only_true_and_using_db_module( $this->assertInIsolation(static function () use ($wpLoader, $wpRootDir) { $wpLoader->_initialize(); - Dispatcher::dispatch(Events::SUITE_BEFORE); + Dispatcher::dispatch(Events::SUITE_INIT); Assert::assertEquals($wpRootDir . '/', ABSPATH); }); @@ -1779,7 +1779,7 @@ public function should_initialize_correctly_with_sqlite_database_in_load_only_mo $this->assertInIsolation(static function () use ($wpLoader) { $wpLoader->_initialize(); - Dispatcher::dispatch(Events::SUITE_BEFORE); + Dispatcher::dispatch(Events::SUITE_INIT); Assert::assertTrue(function_exists('do_action')); Assert::assertInstanceOf(\WP_User::class, wp_get_current_user());