@@ -480,23 +480,23 @@ public function test_register_block_script_module_id_with_interactivity_true() {
480480
481481 $ p = new WP_HTML_Tag_Processor ( $ output );
482482
483- $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) );
483+ $ this -> assertTrue ( $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) ), ' Expected there to be another SCRIPT. ' );
484484 $ this ->assertSame ( 'tests-interactivity-true-view-script-module-js-module ' , $ p ->get_attribute ( 'id ' ) );
485485 $ this ->assertSame ( '{"loadOnClientNavigation":true} ' , $ p ->get_attribute ( 'data-wp-router-options ' ) );
486486
487- $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) );
487+ $ this -> assertTrue ( $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) ), ' Expected there to be another SCRIPT. ' );
488488 $ this ->assertSame ( 'tests-interactive-and-client-navigation-view-script-module-js-module ' , $ p ->get_attribute ( 'id ' ) );
489489 $ this ->assertSame ( '{"loadOnClientNavigation":true} ' , $ p ->get_attribute ( 'data-wp-router-options ' ) );
490490
491- $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) );
491+ $ this -> assertTrue ( $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) ), ' Expected there to be another SCRIPT. ' );
492492 $ this ->assertSame ( 'tests-interactive-and-not-client-navigation-view-script-module-js-module ' , $ p ->get_attribute ( 'id ' ) );
493493 $ this ->assertNull ( $ p ->get_attribute ( 'data-wp-router-options ' ) );
494494
495- $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) );
495+ $ this -> assertTrue ( $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) ), ' Expected there to be another SCRIPT. ' );
496496 $ this ->assertSame ( 'tests-not-interactive-and-client-navigation-view-script-module-js-module ' , $ p ->get_attribute ( 'id ' ) );
497497 $ this ->assertNull ( $ p ->get_attribute ( 'data-wp-router-options ' ) );
498498
499- $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) );
499+ $ this -> assertTrue ( $ p ->next_tag ( array ( 'tag_name ' => 'SCRIPT ' ) ), ' Expected there to be another SCRIPT. ' );
500500 $ this ->assertSame ( 'tests-no-interactivity-view-script-module-js-module ' , $ p ->get_attribute ( 'id ' ) );
501501 $ this ->assertNull ( $ p ->get_attribute ( 'data-wp-router-options ' ) );
502502 }
0 commit comments