Ticket #46061: 46061-tests.diff
File 46061-tests.diff, 2.2 KB (added by , 5 years ago) |
---|
-
tests/phpunit/includes/testcase-canonical.php
217 217 218 218 $tag1 = $factory->term->create( array( 'name' => 'post-formats' ) ); 219 219 self::$term_ids[ $tag1 ] = 'post_tag'; 220 221 $cat6 = $factory->term->create( 222 array( 223 'taxonomy' => 'category', 224 'name' => 'atom', 225 ) 226 ); 227 self::$term_ids[ $cat6 ] = 'category'; 228 229 $tag2 = $factory->term->create( 230 array( 231 'taxonomy' => 'post_tag', 232 'name' => 'feed', 233 ) 234 ); 235 self::$term_ids[ $tag2 ] = 'post_tag'; 236 237 $tag3 = $factory->term->create( 238 array( 239 'taxonomy' => 'post_tag', 240 'name' => 'rss', 241 ) 242 ); 243 self::$term_ids[ $tag3 ] = 'post_tag'; 244 245 // Make sure there are 2 pages of posts in the cat6 and tag2,tag3 lists 246 for ( $i=1; $i <= 6; $i++ ) { 247 self::$post_ids[] = self::factory()->post->create_and_get( 248 array( 249 'post_date' => '2020-01-01 12:00:00', 250 'post_category' => array( $cat6 ), 251 'tags_input' => array( $tag2, $tag3 ), 252 ) 253 ); 254 } 220 255 } 221 256 222 257 /** -
tests/phpunit/tests/canonical.php
126 126 ), 127 127 // array( '/2008/?category_name=cat-a', array( 'url' => '/2008/?category_name=cat-a', 'qv' => array('category_name' => 'cat-a', 'year' => '2008' ) ) ), 128 128 129 // Tags and categories with special names 130 array( '/tag/feed/page/2/', array( 'url' => '/tag/feed/page/2/', 'qv' => array( 'tag' => 'foo', 'paged' => '2' ) ), 46061 ), 131 array( '/tag/rss/page/2/', array( 'url' => '/tag/rss/page/2/', 'qv' => array( 'tag' => 'rss', 'paged' => '2' ) ), 46061 ), 132 array( '/category/atom/page/2/', array( 'url' => '/category/atom/page/2/', 'qv' => array( 'category_name' => 'feed', 'paged' => '2' ) ), 46061 ), 133 129 134 // Pages 130 135 array( '/child-page-1/', '/parent-page/child-page-1/' ), 131 136 array( '/?page_id=144', '/parent-page/child-page-1/' ),