Changeset 1137 in tests for trunk/tests/xmlrpc/wp/editPost.php
- Timestamp:
- 11/14/2012 10:52:12 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/xmlrpc/wp/editPost.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/xmlrpc/wp/editPost.php
r1133 r1137 295 295 $editor_id = $this->make_user_by_role( 'editor' ); 296 296 297 $post_id = $this->factory->post->create( );297 $post_id = $this->factory->post->create( array( 'post_author' => $editor_id ) ); 298 298 $term_id = $this->factory->category->create(); 299 299 $this->factory->term->add_post_terms( $post_id, $term_id, 'category', true ); … … 301 301 $this->assertContains( $term_id, $term_ids ); 302 302 303 $this->myxmlrpcserver->wp_editPost( array( 1, 'editor', 'editor', $post_id, array( 'ID' => $post_id, 'post_title' => 'Updated' ) ) ); 303 $result = $this->myxmlrpcserver->wp_editPost( array( 1, 'editor', 'editor', $post_id, array( 'ID' => $post_id, 'post_title' => 'Updated' ) ) ); 304 $this->assertNotInstanceOf( 'IXR_Error', $result ); 304 305 $this->assertEquals( 'Updated', get_post( $post_id )->post_title ); 305 306
Note: See TracChangeset
for help on using the changeset viewer.