Make WordPress Core

Ticket #21700: tests.21700.2.diff

File tests.21700.2.diff, 1.4 KB (added by atimmer, 11 years ago)
  • tests/phpunit/tests/canonical.php

     
    7676                $this->factory->term->create( array( 'taxonomy' => 'category', 'name' => 'cat-b' ) );
    7777
    7878                $this->factory->term->create( array( 'name' => 'post-formats' ) );
     79
     80                $this->factory->term->create( array( 'taxonomy' => 'tag', 'name' => 'rss' ) );
    7981        }
    8082
    8183        function tearDown() {
     
    181183                        array( '/category/uncategorized/?tag=post-formats', array( 'url' => '/category/uncategorized/?tag=post-formats', 'qv' => array('category_name' => 'uncategorized', 'tag' => 'post-formats') ) ),
    182184                        array( '/?category_name=cat-a,cat-b', array( 'url' => '/?category_name=cat-a,cat-b', 'qv' => array( 'category_name' => 'cat-a,cat-b' ) ) ),
    183185
     186                        // Tags with the same name as a feed should work
     187                        array( '/tag/rss/feed/', '/tag/rss/feed/', 21700 ),
     188                        array( '/tag/rss/feed', '/tag/rss/feed/', 21700 ),
     189                        array( '/tag/rss/feed/atom/', '/tag/rss/feed/atom/', 21700 ),
     190                        array( '/tag/rss/feed/atom', '/tag/rss/feed/atom/', 21700 ),
     191                        array( '/tag/rss/page/2/', '/tag/rss/page/2/', 21700 ),
     192                        array( '/tag/rss/page/2', '/tag/rss/page/2/', 21700 ),
     193
    184194                        // Taxonomies with extra Query Vars
    185195                        array( '/category/cat-a/page/1/?test=one%20two', '/category/cat-a/?test=one%20two', 18086), // Extra query vars should stay encoded
    186196