Ticket #21700: tests.21700.2.diff
File tests.21700.2.diff, 1.4 KB (added by , 11 years ago) |
---|
-
tests/phpunit/tests/canonical.php
76 76 $this->factory->term->create( array( 'taxonomy' => 'category', 'name' => 'cat-b' ) ); 77 77 78 78 $this->factory->term->create( array( 'name' => 'post-formats' ) ); 79 80 $this->factory->term->create( array( 'taxonomy' => 'tag', 'name' => 'rss' ) ); 79 81 } 80 82 81 83 function tearDown() { … … 181 183 array( '/category/uncategorized/?tag=post-formats', array( 'url' => '/category/uncategorized/?tag=post-formats', 'qv' => array('category_name' => 'uncategorized', 'tag' => 'post-formats') ) ), 182 184 array( '/?category_name=cat-a,cat-b', array( 'url' => '/?category_name=cat-a,cat-b', 'qv' => array( 'category_name' => 'cat-a,cat-b' ) ) ), 183 185 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 184 194 // Taxonomies with extra Query Vars 185 195 array( '/category/cat-a/page/1/?test=one%20two', '/category/cat-a/?test=one%20two', 18086), // Extra query vars should stay encoded 186 196