From c5e5f1ea933e4f3539f8b5cc4aebd68e11db45e8 Mon Sep 17 00:00:00 2001 From: James Amner Date: Tue, 3 Dec 2024 10:56:42 +0000 Subject: [PATCH] [FIX] Prevent unneceassary JS loading in the frontend --- packages/iconography/tests/TestIcononographyService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/iconography/tests/TestIcononographyService.php b/packages/iconography/tests/TestIcononographyService.php index ec1397c..6aa023d 100644 --- a/packages/iconography/tests/TestIcononographyService.php +++ b/packages/iconography/tests/TestIcononographyService.php @@ -29,7 +29,7 @@ public function testInit(): void { \WP_Mock::expectActionAdded( 'wp_enqueue_scripts', array( $class_in_test, 'register_assets' ) ); \WP_Mock::expectActionAdded( 'wp_footer', array( $class_in_test, 'enqueue_assets' ), 1, 0 ); \WP_Mock::expectActionAdded( 'enqueue_block_assets', array( $class_in_test, 'register_assets' ), 1, 0 ); - \WP_Mock::expectActionAdded( 'enqueue_block_assets', array( $class_in_test, 'enqueue_editor_scripts' ) ); + \WP_Mock::expectActionAdded( 'enqueue_block_editor_assets', array( $class_in_test, 'enqueue_editor_scripts' ) ); \WP_Mock::expectActionAdded( 'enqueue_block_assets', array( $class_in_test, 'enqueue_all_assets' ) ); $class_in_test->init();