Changeset 51462 for trunk/tests/phpunit/tests/sitemaps/sitemaps.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/sitemaps/sitemaps.php
r49603 r51462 405 405 $sitemap_string = 'Sitemap: http://' . WP_TESTS_DOMAIN . '/?sitemap=index'; 406 406 407 $this->assert Contains( $sitemap_string, $robots_text, 'Sitemap URL not included in robots text.' );407 $this->assertStringContainsString( $sitemap_string, $robots_text, 'Sitemap URL not included in robots text.' ); 408 408 } 409 409 … … 415 415 $sitemap_string = 'Sitemap: http://' . WP_TESTS_DOMAIN . '/?sitemap=index'; 416 416 417 $this->assert NotContains( $sitemap_string, $robots_text );417 $this->assertStringNotContainsString( $sitemap_string, $robots_text ); 418 418 } 419 419 … … 432 432 $this->set_permalink_structure(); 433 433 434 $this->assert Contains( $sitemap_string, $robots_text, 'Sitemap URL not included in robots text.' );434 $this->assertStringContainsString( $sitemap_string, $robots_text, 'Sitemap URL not included in robots text.' ); 435 435 } 436 436 … … 443 443 $sitemap_string = "\nSitemap: "; 444 444 445 $this->assert Contains( $sitemap_string, $robots_text, 'Sitemap URL not prefixed with "\n".' );445 $this->assertStringContainsString( $sitemap_string, $robots_text, 'Sitemap URL not prefixed with "\n".' ); 446 446 } 447 447
Note: See TracChangeset
for help on using the changeset viewer.