Changeset 35242 for trunk/tests/phpunit/tests/xmlrpc/mw/editPost.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mw/editPost.php
r35225 r35242 127 127 // create attachment 128 128 $filename = ( DIR_TESTDATA.'/images/a2-small.jpg' ); 129 $attachment_id = self:: $factory->attachment->create_upload_object( $filename, $post_id );129 $attachment_id = self::factory()->attachment->create_upload_object( $filename, $post_id ); 130 130 131 131 // add post thumbnail to post that does not have one … … 142 142 143 143 // create another attachment 144 $attachment2_id = self:: $factory->attachment->create_upload_object( $filename, $post_id );144 $attachment2_id = self::factory()->attachment->create_upload_object( $filename, $post_id ); 145 145 146 146 // change the post's post_thumbnail … … 229 229 $editor_id = $this->make_user_by_role( 'editor' ); 230 230 231 $post_id = self:: $factory->post->create( array(231 $post_id = self::factory()->post->create( array( 232 232 'post_author' => $editor_id 233 233 ) ); … … 252 252 $editor_id = $this->make_user_by_role( 'editor' ); 253 253 254 $post_id = self:: $factory->post->create( array(254 $post_id = self::factory()->post->create( array( 255 255 'post_title' => 'Title', 256 256 'post_author' => $editor_id,
Note: See TracChangeset
for help on using the changeset viewer.