Changeset 51566 for trunk/tests/phpunit/tests/post/template.php
- Timestamp:
- 08/06/2021 09:55:31 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/template.php
r51565 r51566 320 320 ); 321 321 322 $this->assert NotRegExp( '/<select[^>]+class=\'/', $found );322 $this->assertDoesNotMatchRegularExpression( '/<select[^>]+class=\'/', $found ); 323 323 } 324 324 … … 427 427 // After falling back, the markup should include whitespace around <li>'s. 428 428 $this->assertMatchesRegularExpression( '/\s<li.*>|<\/li>\s/U', $menu ); 429 $this->assert NotRegExp( '/><li.*>|<\/li></U', $menu );429 $this->assertDoesNotMatchRegularExpression( '/><li.*>|<\/li></U', $menu ); 430 430 431 431 // No menus + wp_nav_menu() falls back to wp_page_menu(), this time without a container. … … 449 449 450 450 // After falling back, the markup should not include whitespace around <li>'s. 451 $this->assert NotRegExp( '/\s<li.*>|<\/li>\s/U', $menu );451 $this->assertDoesNotMatchRegularExpression( '/\s<li.*>|<\/li>\s/U', $menu ); 452 452 $this->assertMatchesRegularExpression( '/><li.*>|<\/li></U', $menu ); 453 453
Note: See TracChangeset
for help on using the changeset viewer.