Changeset 48166 for trunk/tests/phpunit/tests/canonical/robots.php
- Timestamp:
- 06/25/2020 11:39:23 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/canonical/robots.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical/robots.php
r48155 r48166 8 8 class Tests_Canonical_Robots extends WP_Canonical_UnitTestCase { 9 9 10 function setUp() { 11 parent::setUp(); 12 } 13 14 function test_robots_url() { 15 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 10 public function test_remove_trailing_slashes_for_robots_requests() { 11 $this->set_permalink_structure( '/%postname%/' ); 16 12 $this->assertCanonical( '/robots.txt', '/robots.txt' ); 17 13 $this->assertCanonical( '/robots.txt/', '/robots.txt' );
Note: See TracChangeset
for help on using the changeset viewer.