WordPress.org

Make WordPress Core

Changeset 444 in tests


Ignore:
Timestamp:
09/21/2011 10:36:40 PM (9 years ago)
Author:
duck_
Message:

A few more canonical tests. See #WP18734.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_canonical.php

    r443 r444  
    118118            array( '/category/uncategorized/?paged=2', array( 'url' => '/category/uncategorized/page/2/', 'qv' => array( 'category_name' => 'uncategorized', 'paged' => 2) ) ),
    119119            array( '/category/uncategorized/?paged=2&category_name=uncategorized', array( 'url' => '/category/uncategorized/page/2/', 'qv' => array( 'category_name' => 'uncategorized', 'paged' => 2) ), 17174 ),
     120            array( '/category/child-1/', '/category/parent/child-1/' ),
     121            array( '/category/foo/child-1/', '/category/parent/child-1/' ),
    120122
    121123            // Categories & Intersections with other vars
    122124            array( '/category/uncategorized/?tag=post-formats', array( 'url' => '/category/uncategorized/?tag=post-formats', 'qv' => array('category_name' => 'uncategorized', 'tag' => 'post-formats') ) ),
    123             array( '/?category_name=cat-a,cat-b', array( 'url' => '/?category_name=cat-a,cat-b', 'qv' => array('category_name' => 'cat-a,cat-b' ) ) ),
     125            array( '/?category_name=cat-a,cat-b', array( 'url' => '/?category_name=cat-a,cat-b', 'qv' => array( 'category_name' => 'cat-a,cat-b' ) ) ),
    124126
    125127            // Categories with Dates
     
    197199            array( '/?p=149&feed=comments-atom', '/2008/03/03/comment-test/comments/feed/atom/'),
    198200            array( '/2008/03/03/comment-test/?feed=comments-atom', '/2008/03/03/comment-test/comments/feed/atom/' ), // Incorrect URL to an invalid URL?
     201
     202            // Index
     203            array( '/?paged=1', '/' ),
     204            array( '/page/1/', '/' ),
     205            array( '/page1/', '/' ),
     206            array( '/?paged=2', '/page/2/' ),
     207            array( '/page2/', '/page/2/' ),
    199208
    200209            // Misc
Note: See TracChangeset for help on using the changeset viewer.