Changeset 42343 for trunk/tests/phpunit/tests/xmlrpc/wp/getRevisions.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getRevisions.php
r40417 r42343 26 26 27 27 $post_id = self::factory()->post->create(); 28 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) );28 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); 29 29 $this->assertNotIXRError( $result ); 30 30 } … … 34 34 35 35 $post_id = self::factory()->post->create(); 36 wp_insert_post( array( 'ID' => $post_id, 'post_content' => 'Edit 1' ) ); // Create the initial revision 36 wp_insert_post( 37 array( 38 'ID' => $post_id, 39 'post_content' => 'Edit 1', 40 ) 41 ); // Create the initial revision 37 42 38 43 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); … … 40 45 $this->assertCount( 1, $result ); 41 46 42 wp_insert_post( array( 'ID' => $post_id, 'post_content' => 'Edit 2' ) ); 47 wp_insert_post( 48 array( 49 'ID' => $post_id, 50 'post_content' => 'Edit 2', 51 ) 52 ); 43 53 44 54 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); … … 53 63 $this->make_user_by_role( 'editor' ); 54 64 55 $post_id = $this->myxmlrpcserver->wp_newPost( array( 1, 'editor', 'editor', array( 56 'post_title' => 'Original title', 57 'post_content' => 'Test' 58 ) ) ); 65 $post_id = $this->myxmlrpcserver->wp_newPost( 66 array( 67 1, 68 'editor', 69 'editor', 70 array( 71 'post_title' => 'Original title', 72 'post_content' => 'Test', 73 ), 74 ) 75 ); 59 76 60 77 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) );
Note: See TracChangeset
for help on using the changeset viewer.