Changeset 47760 for trunk/tests/phpunit/tests/canonical/paged.php
- Timestamp:
- 05/04/2020 10:40:06 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical/paged.php
r46586 r47760 7 7 class Tests_Canonical_Paged extends WP_Canonical_UnitTestCase { 8 8 9 function test_ nextpage() {9 function test_redirect_canonical_with_nextpage_pagination() { 10 10 $para = 'This is a paragraph. 11 11 This is a paragraph. … … 20 20 ); 21 21 22 $link = parse_url( get_permalink( $post_id ), PHP_URL_PATH ); 23 $paged = $link . '4/'; 22 $link = parse_url( get_permalink( $post_id ), PHP_URL_PATH ); 24 23 25 $this->assertCanonical( $paged, $link ); 24 // Existing page should be displayed as is. 25 $this->assertCanonical( $link . '3/', $link . '3/' ); 26 // Non-existing page should redirect to the permalink. 27 $this->assertCanonical( $link . '4/', $link ); 26 28 } 29 27 30 }
Note: See TracChangeset
for help on using the changeset viewer.