Changeset 45588 for trunk/tests/phpunit/includes/testcase-canonical.php
- Timestamp:
- 07/02/2019 04:43:01 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-canonical.php
r44701 r45588 62 62 ) 63 63 ); 64 self::$post_ids[] = $post_id= $factory->post->create(64 $post_id = $factory->post->create( 65 65 array( 66 66 'post_title' => 'post-format-test-gallery', … … 68 68 ) 69 69 ); 70 self::$post_ids[] = $factory->post->create( 70 self::$post_ids[] = $post_id; 71 $factory->post->create( 71 72 array( 72 73 'import_id' => 611, … … 76 77 ) 77 78 ); 79 self::$post_ids[] = $post_id; 78 80 79 81 self::$post_ids[] = $factory->post->create( … … 85 87 ); 86 88 87 self::$post_ids[] = $post_id= $factory->post->create(89 $post_id = $factory->post->create( 88 90 array( 89 91 'import_id' => 149, … … 92 94 ) 93 95 ); 96 self::$post_ids[] = $post_id; 94 97 self::$comment_ids = $factory->comment->create_post_comments( $post_id, 15 ); 95 98 … … 112 115 ) 113 116 ); 114 self::$post_ids[] = $post_id= $factory->post->create(117 $post_id = $factory->post->create( 115 118 array( 116 119 'post_type' => 'page', … … 118 121 ) 119 122 ); 123 self::$post_ids[] = $post_id; 120 124 self::$post_ids[] = $factory->post->create( 121 125 array( … … 127 131 ); 128 132 129 self::$post_ids[] = $parent_id= $factory->post->create(133 $parent_id = $factory->post->create( 130 134 array( 131 135 'post_name' => 'parent', … … 133 137 ) 134 138 ); 135 self::$post_ids[] = $child_id_1 = $factory->post->create( 139 self::$post_ids[] = $parent_id; 140 $child_id_1 = $factory->post->create( 136 141 array( 137 142 'post_name' => 'child1', … … 140 145 ) 141 146 ); 142 self::$post_ids[] = $child_id_2 = $factory->post->create( 147 self::$post_ids[] = $child_id_1; 148 $child_id_2 = $factory->post->create( 143 149 array( 144 150 'post_name' => 'child2', … … 147 153 ) 148 154 ); 149 self::$post_ids[] = $grandchild_id_1 = $factory->post->create( 155 self::$post_ids[] = $child_id_2; 156 $grandchild_id_1 = $factory->post->create( 150 157 array( 151 158 'post_name' => 'grandchild', … … 154 161 ) 155 162 ); 156 self::$post_ids[] = $grandchild_id_2 = $factory->post->create( 163 self::$post_ids[] = $grandchild_id_1; 164 $grandchild_id_2 = $factory->post->create( 157 165 array( 158 166 'post_name' => 'grandchild', … … 161 169 ) 162 170 ); 171 self::$post_ids[] = $grandchild_id_2; 163 172 164 173 $cat1 = $factory->term->create(
Note: See TracChangeset
for help on using the changeset viewer.