12345678910111213141516 |
- <?php
- /**
- * @group canonical
- * @group rewrite
- * @group query
- */
- class Tests_Canonical_Robots extends WP_Canonical_UnitTestCase {
- public function test_remove_trailing_slashes_for_robots_requests() {
- $this->set_permalink_structure( '/%postname%/' );
- $this->assertCanonical( '/robots.txt', '/robots.txt' );
- $this->assertCanonical( '/robots.txt/', '/robots.txt' );
- }
- }
|