@@ -789,24 +789,24 @@ public function test_available_items_template() {
789789
790790 $ this ->assertNotEmpty ( $ post_types );
791791
792- foreach ( $ post_types as $ type ) {
793- $ this ->assertStringContainsString ( 'available-menu-items-post_type- ' . esc_attr ( $ type ->name ), $ template );
794- $ this ->assertMatchesRegularExpression ( '#<h4 class="accordion-section-title".*>\s*<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls=".*">\s* ' . esc_html ( $ type ->labels ->name ) . '# ' , $ template );
795- $ this ->assertStringContainsString ( 'data-type="post_type" ' , $ template );
796- $ this ->assertStringContainsString ( 'data-object=" ' . esc_attr ( $ type ->name ) . '" ' , $ template );
797- $ this ->assertStringContainsString ( 'data-type_label=" ' . esc_attr ( $ type ->labels ->singular_name ) . '" ' , $ template );
792+ foreach ( $ post_types as $ type ) {
793+ $ this ->assertStringContainsString ( 'available-menu-items-post_type- ' . esc_attr ( $ type ->name ), $ template );
794+ $ this ->assertMatchesRegularExpression ( '#<h4 class="accordion-section-title".*>\s*<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls=".*">\s* ' . esc_html ( $ type ->labels ->name ) . '# ' , $ template );
795+ $ this ->assertStringContainsString ( 'data-type="post_type" ' , $ template );
796+ $ this ->assertStringContainsString ( 'data-object=" ' . esc_attr ( $ type ->name ) . '" ' , $ template );
797+ $ this ->assertStringContainsString ( 'data-type_label=" ' . esc_attr ( $ type ->labels ->singular_name ) . '" ' , $ template );
798798 }
799799
800800 $ taxonomies = get_taxonomies ( array ( 'show_in_nav_menus ' => true ), 'object ' );
801801
802802 $ this ->assertNotEmpty ( $ taxonomies );
803803
804- foreach ( $ taxonomies as $ tax ) {
805- $ this ->assertStringContainsString ( 'available-menu-items-taxonomy- ' . esc_attr ( $ tax ->name ), $ template );
806- $ this ->assertMatchesRegularExpression ( '#<h4 class="accordion-section-title".*>\s*<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls=".*">\s* ' . esc_html ( $ tax ->labels ->name ) . '# ' , $ template );
807- $ this ->assertStringContainsString ( 'data-type="taxonomy" ' , $ template );
808- $ this ->assertStringContainsString ( 'data-object=" ' . esc_attr ( $ tax ->name ) . '" ' , $ template );
809- $ this ->assertStringContainsString ( 'data-type_label=" ' . esc_attr ( $ tax ->labels ->singular_name ) . '" ' , $ template );
804+ foreach ( $ taxonomies as $ tax ) {
805+ $ this ->assertStringContainsString ( 'available-menu-items-taxonomy- ' . esc_attr ( $ tax ->name ), $ template );
806+ $ this ->assertMatchesRegularExpression ( '#<h4 class="accordion-section-title".*>\s*<button type="button" class="accordion-trigger" aria-expanded="false" aria-controls=".*">\s* ' . esc_html ( $ tax ->labels ->name ) . '# ' , $ template );
807+ $ this ->assertStringContainsString ( 'data-type="taxonomy" ' , $ template );
808+ $ this ->assertStringContainsString ( 'data-object=" ' . esc_attr ( $ tax ->name ) . '" ' , $ template );
809+ $ this ->assertStringContainsString ( 'data-type_label=" ' . esc_attr ( $ tax ->labels ->singular_name ) . '" ' , $ template );
810810 }
811811
812812 $ this ->assertStringContainsString ( 'available-menu-items-custom_type ' , $ template );
0 commit comments