Changeset 49992 for trunk/tests/phpunit/tests/general/template.php
- Timestamp:
- 01/21/2021 01:35:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/template.php
r49847 r49992 473 473 474 474 $this->assertSame( $expected, $result ); 475 }476 477 /**478 * @ticket 43590479 */480 function test_wp_no_robots() {481 // Simulate private site (search engines discouraged).482 update_option( 'blog_public', '0' );483 $actual_private = get_echo( 'wp_no_robots' );484 $this->assertSame( "<meta name='robots' content='noindex,nofollow' />\n", $actual_private );485 486 // Simulate public site.487 update_option( 'blog_public', '1' );488 $actual_public = get_echo( 'wp_no_robots' );489 $this->assertSame( "<meta name='robots' content='noindex,follow' />\n", $actual_public );490 475 } 491 476
Note: See TracChangeset
for help on using the changeset viewer.