File tree 1 file changed +11
-1
lines changed
tests/phpunit/tests/interactivity-api
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,17 @@ public function test_config_not_printed_when_empty() {
211
211
$ this ->expectOutputString ( '' );
212
212
}
213
213
214
+ /**
215
+ * Test that the deprecated register_script_modules method is deprecated but does not throw.
216
+ *
217
+ * @ticket 60647
218
+ *
219
+ * @expectedDeprecated WP_Interactivity_API::register_script_modules
220
+ */
221
+ public function test_register_script_modules_deprecated () {
222
+ $ this ->interactivity ->register_script_modules ();
223
+ }
224
+
214
225
/**
215
226
* Sets up an activity, runs an optional callback, and returns a MockAction for inspection.
216
227
*
@@ -221,7 +232,6 @@ public function test_config_not_printed_when_empty() {
221
232
*/
222
233
private function get_script_data_filter_result ( ?Closure $ callback = null ): MockAction {
223
234
$ this ->interactivity ->add_hooks ();
224
- $ this ->interactivity ->register_script_modules ();
225
235
wp_enqueue_script_module ( '@wordpress/interactivity ' );
226
236
$ filter = new MockAction ();
227
237
add_filter ( 'script_module_data_@wordpress/interactivity ' , array ( $ filter , 'filter ' ) );
You can’t perform that action at this time.
0 commit comments