Changeset 51462 for trunk/tests/phpunit/tests/robots.php
- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/robots.php
r50566 r51462 69 69 70 70 $output = get_echo( 'wp_robots' ); 71 $this->assert Contains( "'{$expected_directives_string}'", $output );71 $this->assertStringContainsString( "'{$expected_directives_string}'", $output ); 72 72 } 73 73 … … 84 84 update_option( 'blog_public', '0' ); 85 85 $output = get_echo( 'wp_robots' ); 86 $this->assert Contains( "'noindex, nofollow'", $output );86 $this->assertStringContainsString( "'noindex, nofollow'", $output ); 87 87 } 88 88 … … 95 95 update_option( 'blog_public', '1' ); 96 96 $output = get_echo( 'wp_robots' ); 97 $this->assert Contains( "'noindex, follow'", $output );97 $this->assertStringContainsString( "'noindex, follow'", $output ); 98 98 99 99 update_option( 'blog_public', '0' ); 100 100 $output = get_echo( 'wp_robots' ); 101 $this->assert Contains( "'noindex, nofollow'", $output );101 $this->assertStringContainsString( "'noindex, nofollow'", $output ); 102 102 } 103 103 … … 109 109 110 110 $output = get_echo( 'wp_robots' ); 111 $this->assert Contains( "'noindex, noarchive'", $output );111 $this->assertStringContainsString( "'noindex, noarchive'", $output ); 112 112 } 113 113 … … 120 120 update_option( 'blog_public', '1' ); 121 121 $output = get_echo( 'wp_robots' ); 122 $this->assert Contains( "'max-image-preview:large'", $output );122 $this->assertStringContainsString( "'max-image-preview:large'", $output ); 123 123 124 124 update_option( 'blog_public', '0' ); … … 135 135 136 136 $output = get_echo( 'wp_robots' ); 137 $this->assert Contains( 'noindex', $output );137 $this->assertStringContainsString( 'noindex', $output ); 138 138 } 139 139 … … 146 146 147 147 $output = get_echo( 'wp_robots' ); 148 $this->assert NotContains( 'noindex', $output );148 $this->assertStringNotContainsString( 'noindex', $output ); 149 149 } 150 150
Note: See TracChangeset
for help on using the changeset viewer.