WordPress.org

Make WordPress Core

Ticket #18734: 18734-tests.patch

File 18734-tests.patch, 1.2 KB (added by boonebgorges, 5 years ago)

Removing from trunk as per #30284

  • tests/phpunit/tests/canonical.php

    diff --git tests/phpunit/tests/canonical.php tests/phpunit/tests/canonical.php
    index 7f18c37..c91b730 100644
    class Tests_Canonical extends WP_Canonical_UnitTestCase { 
    6363                        array( '/category/uncategorized/page/2/', array( 'url' => '/category/uncategorized/page/2/', 'qv' => array( 'category_name' => 'uncategorized', 'paged' => 2) ) ),
    6464                        array( '/category/uncategorized/?paged=2', array( 'url' => '/category/uncategorized/page/2/', 'qv' => array( 'category_name' => 'uncategorized', 'paged' => 2) ) ),
    6565                        array( '/category/uncategorized/?paged=2&category_name=uncategorized', array( 'url' => '/category/uncategorized/page/2/', 'qv' => array( 'category_name' => 'uncategorized', 'paged' => 2) ), 17174 ),
     66                        array( '/category/child-1/', '/category/parent/child-1/', 18734 ),
     67                        array( '/category/foo/child-1/', '/category/parent/child-1/', 18734 ),
    6668
    6769                        // Categories & Intersections with other vars
    6870                        array( '/category/uncategorized/?tag=post-formats', array( 'url' => '/category/uncategorized/?tag=post-formats', 'qv' => array('category_name' => 'uncategorized', 'tag' => 'post-formats') ) ),