Changeset 53909
- Timestamp:
- 08/19/2022 04:13:38 PM (2 years ago)
- Location:
- trunk/tests/phpunit/tests/rest-api
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php
r52068 r53909 39 39 // Set up categories for pagination tests. 40 40 for ( $i = 0; $i < self::$total_categories - 1; $i++ ) { 41 $category_ids[] = $factory->category->create(41 self::$category_ids[] = $factory->category->create( 42 42 array( 43 43 'name' => "Category {$i}", -
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r52389 r53909 118 118 // Set up comments for pagination tests. 119 119 for ( $i = 0; $i < self::$total_comments - 1; $i++ ) { 120 $comment_ids[] = $factory->comment->create(120 self::$comment_ids[] = $factory->comment->create( 121 121 array( 122 122 'comment_content' => "Comment {$i}", -
trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php
r52068 r53909 55 55 // Set up tags for pagination tests. 56 56 for ( $i = 0; $i < self::$total_tags; $i++ ) { 57 $tag_ids[] = $factory->tag->create(57 self::$tag_ids[] = $factory->tag->create( 58 58 array( 59 59 'name' => "Tag {$i}", … … 413 413 $tags = $response->get_data(); 414 414 415 $this->assertNotEmpty( $tags ); 416 415 417 $i = 0; 416 418 foreach ( $tags as $tag ) { … … 426 428 $response = rest_get_server()->dispatch( $request ); 427 429 $tags = $response->get_data(); 430 431 $this->assertNotEmpty( $tags ); 428 432 429 433 foreach ( $tags as $tag ) {
Note: See TracChangeset
for help on using the changeset viewer.