- Timestamp:
- 09/06/2022 10:09:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php
r54043 r54090 206 206 // is not desirable. 207 207 208 $administrator_id = $this->factory->user->create(208 $administrator_id = self::factory()->user->create( 209 209 array( 210 210 'role' => 'administrator', … … 216 216 wp_set_current_user( $administrator_id ); 217 217 218 $post_id = $this->factory->post->create(218 $post_id = self::factory()->post->create( 219 219 array( 220 220 'post_name' => 'restapi-client-fixture-post', … … 244 244 ); 245 245 246 $page_id = $this->factory->post->create(246 $page_id = self::factory()->post->create( 247 247 array( 248 248 'post_type' => 'page', … … 274 274 ); 275 275 276 $tag_id = $this->factory->tag->create(276 $tag_id = self::factory()->tag->create( 277 277 array( 278 278 'name' => 'REST API Client Fixture: Tag', … … 282 282 ); 283 283 284 $media_id = $this->factory->attachment->create_object(284 $media_id = self::factory()->attachment->create_object( 285 285 get_temp_dir() . 'canola.jpg', 286 286 0, … … 296 296 ); 297 297 298 $comment_id = $this->factory->comment->create(298 $comment_id = self::factory()->comment->create( 299 299 array( 300 300 'comment_approved' => 1,
Note: See TracChangeset
for help on using the changeset viewer.