Changeset 38523 for trunk/tests/phpunit/tests/post/template.php
- Timestamp:
- 09/06/2016 09:05:45 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/template.php
r35242 r38523 300 300 $this->assertRegExp( '/<\/ul><\/div>/', $menu ); 301 301 302 // After falling back, the markup should include whitespace around <li>s 303 $this->assertRegExp( '/\s<li.*>|<\/li>\s/U', $menu ); 304 $this->assertNotRegExp( '/><li.*>|<\/li></U', $menu ); 305 302 306 // No menus + wp_nav_menu() falls back to wp_page_menu(), this time without a container. 303 307 $menu = wp_nav_menu( array( … … 308 312 // After falling back, the empty 'container' argument should still return a container element. 309 313 $this->assertRegExp( '/<div class="menu">/', $menu ); 314 315 // No menus + wp_nav_menu() falls back to wp_page_menu(), this time without white-space. 316 $menu = wp_nav_menu( array( 317 'echo' => false, 318 'item_spacing' => 'discard', 319 ) ); 320 321 // After falling back, the markup should not include whitespace around <li>s 322 $this->assertNotRegExp( '/\s<li.*>|<\/li>\s/U', $menu ); 323 $this->assertRegExp( '/><li.*>|<\/li></U', $menu ); 324 310 325 } 311 326 }
Note: See TracChangeset
for help on using the changeset viewer.