WordPress.org

Make WordPress Core

Ticket #20386: 20386-tests.patch

File 20386-tests.patch, 929 bytes (added by boonebgorges, 6 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 e9133ab..522bc33 100644
    class Tests_Canonical extends WP_Canonical_UnitTestCase { 
    7474                        // Categories with Dates
    7575                        array( '/2008/04/?cat=1', array( 'url' => '/2008/04/?cat=1', 'qv' => array('cat' => '1', 'year' => '2008', 'monthnum' => '04' ) ), 17661 ),
    7676//                      array( '/2008/?category_name=cat-a', array( 'url' => '/2008/?category_name=cat-a', 'qv' => array('category_name' => 'cat-a', 'year' => '2008' ) ) ),
     77                        array( '/2008/?category_name=cat-a', array( 'url' => '/category/cat-a/?year=2008', 'qv' => array('category_name' => 'cat-a', 'year' => '2008' ) ), 20386 ),
    7778
    7879                        // Pages
    7980                        array( '/sample%20page/', array( 'url' => '/sample-page/', 'qv' => array('pagename' => 'sample-page', 'page' => '' ) ), 17653 ), // Page rules always set 'page'