Changeset 1040 in tests for trunk/tests/xmlrpc/mw/editPost.php
- Timestamp:
- 09/22/2012 04:33:44 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/tests/xmlrpc/mw/editPost.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/xmlrpc/mw/editPost.php
r904 r1040 24 24 $this->assertTrue($result); 25 25 26 $out = wp_get_single_post( $post_id );26 $out = get_post( $post_id ); 27 27 $this->assertEquals( $new_title, $out->post_title ); 28 28 } … … 41 41 $this->assertTrue($result); 42 42 43 $out = wp_get_single_post( $post_id );43 $out = get_post( $post_id ); 44 44 $this->assertEquals( $new_title, $out->post_title ); 45 45 } … … 59 59 $this->assertEquals( 401, $result->code ); 60 60 61 $out = wp_get_single_post( $post_id );61 $out = get_post( $post_id ); 62 62 $this->assertEquals( $original_title, $out->post_title ); 63 63 } … … 76 76 $this->assertTrue($result); 77 77 78 $out = wp_get_single_post( $post_id );78 $out = get_post( $post_id ); 79 79 $this->assertEquals( $author_id, $out->post_author ); 80 80 } … … 92 92 $this->assertEquals( 401, $result->code ); 93 93 94 $out = wp_get_single_post( $post_id );94 $out = get_post( $post_id ); 95 95 $this->assertEquals( $contributor_id, $out->post_author ); 96 96 } … … 162 162 $this->assertTrue($result); 163 163 164 $out = wp_get_single_post( $post_id );164 $out = get_post( $post_id ); 165 165 $this->assertEquals( $post2['title'], $out->post_title ); 166 166 … … 170 170 $this->assertTrue($result); 171 171 172 $out = wp_get_single_post( $post_id );172 $out = get_post( $post_id ); 173 173 $this->assertEquals( $post2['title'], $out->post_title ); 174 174 $this->assertEquals( $post3['description'], $out->post_content ); … … 179 179 $this->assertTrue($result); 180 180 181 $out = wp_get_single_post( $post_id );181 $out = get_post( $post_id ); 182 182 $this->assertEquals( $post2['title'], $out->post_title ); 183 183 $this->assertEquals( $post3['description'], $out->post_content );
Note: See TracChangeset
for help on using the changeset viewer.