Changeset 45588 for trunk/tests/phpunit/tests/query/results.php
- Timestamp:
- 07/02/2019 04:43:01 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/results.php
r43571 r45588 23 23 24 24 public static function wpSetUpBeforeClass( $factory ) { 25 self::$cat_ids[] = $cat_a= $factory->term->create(25 $cat_a = $factory->term->create( 26 26 array( 27 27 'taxonomy' => 'category', … … 29 29 ) 30 30 ); 31 self::$cat_ids[] = $cat_b = $factory->term->create( 31 self::$cat_ids[] = $cat_a; 32 $cat_b = $factory->term->create( 32 33 array( 33 34 'taxonomy' => 'category', … … 35 36 ) 36 37 ); 37 self::$cat_ids[] = $cat_c = $factory->term->create( 38 self::$cat_ids[] = $cat_b; 39 $cat_c = $factory->term->create( 38 40 array( 39 41 'taxonomy' => 'category', … … 41 43 ) 42 44 ); 43 44 self::$tag_ids[] = $tag_a = $factory->term->create( 45 self::$cat_ids[] = $cat_c; 46 47 $tag_a = $factory->term->create( 45 48 array( 46 49 'taxonomy' => 'post_tag', … … 48 51 ) 49 52 ); 50 self::$tag_ids[] = $tag_b = $factory->term->create( 53 self::$tag_ids[] = $tag_a; 54 $tag_b = $factory->term->create( 51 55 array( 52 56 'taxonomy' => 'post_tag', … … 54 58 ) 55 59 ); 56 self::$tag_ids[] = $tag_c = $factory->term->create( 60 self::$tag_ids[] = $tag_b; 61 $tag_c = $factory->term->create( 57 62 array( 58 63 'taxonomy' => 'post_tag', … … 60 65 ) 61 66 ); 62 self::$tag_ids[] = $tag_nun = $factory->term->create( 67 self::$tag_ids[] = $tag_c; 68 $tag_nun = $factory->term->create( 63 69 array( 64 70 'taxonomy' => 'post_tag', … … 66 72 ) 67 73 ); 74 self::$tag_ids[] = $tag_nun; 68 75 69 76 self::$post_ids[] = $factory->post->create( … … 233 240 ); 234 241 235 self::$p ost_ids[] = self::$parent_one= $factory->post->create(242 self::$parent_one = $factory->post->create( 236 243 array( 237 244 'post_title' => 'parent-one', … … 239 246 ) 240 247 ); 241 self::$post_ids[] = self::$parent_two = $factory->post->create( 248 self::$post_ids[] = self::$parent_one; 249 self::$parent_two = $factory->post->create( 242 250 array( 243 251 'post_title' => 'parent-two', … … 245 253 ) 246 254 ); 247 self::$post_ids[] = self::$parent_three = $factory->post->create( 255 self::$post_ids[] = self::$parent_two; 256 self::$parent_three = $factory->post->create( 248 257 array( 249 258 'post_title' => 'parent-three', … … 251 260 ) 252 261 ); 253 self::$post_ids[] = self::$child_one = $factory->post->create( 262 self::$post_ids[] = self::$parent_three; 263 self::$child_one = $factory->post->create( 254 264 array( 255 265 'post_title' => 'child-one', … … 258 268 ) 259 269 ); 260 self::$post_ids[] = self::$child_two = $factory->post->create( 270 self::$post_ids[] = self::$child_one; 271 self::$child_two = $factory->post->create( 261 272 array( 262 273 'post_title' => 'child-two', … … 265 276 ) 266 277 ); 267 self::$post_ids[] = self::$child_three = $factory->post->create( 278 self::$post_ids[] = self::$child_two; 279 self::$child_three = $factory->post->create( 268 280 array( 269 281 'post_title' => 'child-three', … … 272 284 ) 273 285 ); 274 self::$post_ids[] = self::$child_four = $factory->post->create( 286 self::$post_ids[] = self::$child_three; 287 self::$child_four = $factory->post->create( 275 288 array( 276 289 'post_title' => 'child-four', … … 279 292 ) 280 293 ); 294 self::$post_ids[] = self::$child_four; 281 295 } 282 296
Note: See TracChangeset
for help on using the changeset viewer.