Changeset 50078 for trunk/tests/phpunit/tests/robots.php
- Timestamp:
- 01/29/2021 08:36:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/robots.php
r49992 r50078 162 162 } 163 163 164 /** 165 * @ticket 51511 166 */ 167 public function test_wp_robots_max_image_preview_large() { 168 add_filter( 'wp_robots', 'wp_robots_max_image_preview_large' ); 169 170 update_option( 'blog_public', '1' ); 171 $output = get_echo( 'wp_robots' ); 172 $this->assertContains( "'max-image-preview:large'", $output ); 173 174 update_option( 'blog_public', '0' ); 175 $output = get_echo( 'wp_robots' ); 176 $this->assertEmpty( $output ); 177 } 178 164 179 public function add_noindex_directive( array $robots ) { 165 180 $robots['noindex'] = true;
Note: See TracChangeset
for help on using the changeset viewer.