Changeset 51462 for trunk/tests/phpunit/tests/user/author.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/author.php
r50463 r51462 115 115 $url = sprintf( 'http://%1$s/?author=%2$s', WP_TESTS_DOMAIN, $author->ID ); 116 116 117 $this->assert Contains( $url, $link );118 $this->assert Contains( 'Posts by Test Author', $link );119 $this->assert Contains( '>Test Author</a>', $link );117 $this->assertStringContainsString( $url, $link ); 118 $this->assertStringContainsString( 'Posts by Test Author', $link ); 119 $this->assertStringContainsString( '>Test Author</a>', $link ); 120 120 121 121 unset( $GLOBALS['authordata'] ); … … 138 138 $this->set_permalink_structure( '' ); 139 139 140 $this->assert Contains( $url, $link );141 $this->assert Contains( 'Posts by Test Author', $link );142 $this->assert Contains( '>Test Author</a>', $link );140 $this->assertStringContainsString( $url, $link ); 141 $this->assertStringContainsString( 'Posts by Test Author', $link ); 142 $this->assertStringContainsString( '>Test Author</a>', $link ); 143 143 144 144 unset( $GLOBALS['authordata'] );
Note: See TracChangeset
for help on using the changeset viewer.