You appear to be a bot. Output may be restricted
Description
Usage
Tests_XMLRPC_mw_newPost::test_empty_author();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/xmlrpc/mw/newPost.php
Lines:
1 to 13 of 13
public function test_empty_author() { $my_author_id = $this->make_user_by_role( 'author' ); $post = array( 'title' => 'Test' ); $result = $this->myxmlrpcserver->mw_newPost( array( 1, 'author', 'author', $post ) ); $this->assertNotIXRError( $result ); $this->assertStringMatchesFormat( '%d', $result ); $out = get_post( $result ); $this->assertEquals( $my_author_id, $out->post_author ); $this->assertSame( 'Test', $out->post_title ); }