Make WordPress Core

Changeset 26091


Ignore:
Timestamp:
11/11/2013 06:57:11 PM (11 years ago)
Author:
wonderboymusic
Message:

Set the page_comments option to true in Tests_Canonical to properly check canonical redirection for paged comments. By doing so, one assertion tied to #20388 no longer needs to be.

See #20388, 25913.

File:
1 edited

Legend:

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

    r25280 r26091  
    2222        parent::setUp();
    2323
     24        update_option( 'page_comments', true );
    2425        update_option( 'comments_per_page', 5 );
    2526        update_option( 'posts_per_page', 5 );
     
    221222
    222223            // Comments
    223             array( '/2008/03/03/comment-test/?cpage=2', '/2008/03/03/comment-test/comment-page-2/', 20388 ),
     224            array( '/2008/03/03/comment-test/?cpage=2', '/2008/03/03/comment-test/comment-page-2/' ),
    224225            array( '/2008/03/03/comment-test/comment-page-20/', '/2008/03/03/comment-test/comment-page-3/', 20388 ), // there's only 3 pages
    225226            array( '/2008/03/03/comment-test/?cpage=30', '/2008/03/03/comment-test/comment-page-3/', 20388 ), // there's only 3 pages
Note: See TracChangeset for help on using the changeset viewer.