Changeset 51565 for trunk/tests/phpunit/tests/post/template.php
- Timestamp:
- 08/06/2021 09:52:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/template.php
r51462 r51565 341 341 ); 342 342 343 $this->assert RegExp( '/<select[^>]+class=\'bar\'/', $found );343 $this->assertMatchesRegularExpression( '/<select[^>]+class=\'bar\'/', $found ); 344 344 } 345 345 … … 420 420 421 421 // After falling back, the 'before' argument should be set and output as '<ul>'. 422 $this->assert RegExp( '/<div class="menu"><ul>/', $menu );422 $this->assertMatchesRegularExpression( '/<div class="menu"><ul>/', $menu ); 423 423 424 424 // After falling back, the 'after' argument should be set and output as '</ul>'. 425 $this->assert RegExp( '/<\/ul><\/div>/', $menu );425 $this->assertMatchesRegularExpression( '/<\/ul><\/div>/', $menu ); 426 426 427 427 // After falling back, the markup should include whitespace around <li>'s. 428 $this->assert RegExp( '/\s<li.*>|<\/li>\s/U', $menu );428 $this->assertMatchesRegularExpression( '/\s<li.*>|<\/li>\s/U', $menu ); 429 429 $this->assertNotRegExp( '/><li.*>|<\/li></U', $menu ); 430 430 … … 438 438 439 439 // After falling back, the empty 'container' argument should still return a container element. 440 $this->assert RegExp( '/<div class="menu">/', $menu );440 $this->assertMatchesRegularExpression( '/<div class="menu">/', $menu ); 441 441 442 442 // No menus + wp_nav_menu() falls back to wp_page_menu(), this time without white-space. … … 450 450 // After falling back, the markup should not include whitespace around <li>'s. 451 451 $this->assertNotRegExp( '/\s<li.*>|<\/li>\s/U', $menu ); 452 $this->assert RegExp( '/><li.*>|<\/li></U', $menu );452 $this->assertMatchesRegularExpression( '/><li.*>|<\/li></U', $menu ); 453 453 454 454 }
Note: See TracChangeset
for help on using the changeset viewer.