Changeset 34572 for trunk/tests/phpunit/tests/xmlrpc/mw/newPost.php
- Timestamp:
- 09/26/2015 03:37:53 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/mw/newPost.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mw/newPost.php
r25002 r34572 160 160 } 161 161 162 163 /** 164 * @ticket 16985 165 */ 166 function test_draft_post_date() { 167 $this->make_user_by_role( 'editor' ); 168 169 $post = array( 170 'title' => 'Test', 171 'post_type' => 'post', 172 'post_status' => 'draft' 173 ); 174 $result = $this->myxmlrpcserver->mw_newPost( array( 1, 'editor', 'editor', $post ) ); 175 $this->assertNotInstanceOf( 'IXR_Error', $result ); 176 $this->assertStringMatchesFormat( '%d', $result ); 177 178 $out = get_post( $result ); 179 $this->assertEquals( 'post', $out->post_type ); 180 $this->assertEquals( 'draft', $out->post_status ); 181 $this->assertEquals( '0000-00-00 00:00:00', $out->post_date_gmt ); 182 } 162 183 }
Note: See TracChangeset
for help on using the changeset viewer.