Make WordPress Core

Changeset 51928


Ignore:
Timestamp:
10/23/2021 12:36:15 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Add @ticket references for page_on_front canonical tests.

Follow-up to [669/tests], [849/tests], [36238], [47760].

See #53363.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/canonical/pageOnFront.php

    r51568 r51928  
    5252        return array(
    5353            // Check against an odd redirect.
    54             array( '/page/2/', '/page/2/' ),
    55             array( '/?page=2', '/page/2/' ),
    56             array( '/page/1/', '/' ),
    57             array( '/?page=1', '/' ),
     54            array( '/page/2/', '/page/2/', 20385 ),
     55            array( '/?page=2', '/page/2/', 35344 ),
     56            array( '/page/1/', '/', 35344 ),
     57            array( '/?page=1', '/', 35344 ),
    5858
    5959            // The page designated as the front page should redirect to the front of the site.
    60             array( '/front-page/', '/' ),
     60            array( '/front-page/', '/', 20385 ),
    6161            // The front page supports the <!--nextpage--> pagination.
    62             array( '/front-page/2/', '/page/2/' ),
    63             array( '/front-page/?page=2', '/page/2/' ),
     62            array( '/front-page/2/', '/page/2/', 35344 ),
     63            array( '/front-page/?page=2', '/page/2/', 35344 ),
    6464            // The posts page does not support the <!--nextpage--> pagination.
    65             array( '/blog-page/2/', '/blog-page/' ),
    66             array( '/blog-page/?page=2', '/blog-page/' ),
     65            array( '/blog-page/2/', '/blog-page/', 45337 ),
     66            array( '/blog-page/?page=2', '/blog-page/', 45337 ),
    6767            // The posts page supports regular pagination.
    68             array( '/blog-page/?paged=2', '/blog-page/page/2/' ),
     68            array( '/blog-page/?paged=2', '/blog-page/page/2/', 20385 ),
    6969        );
    7070    }
Note: See TracChangeset for help on using the changeset viewer.