You appear to be a bot. Output may be restricted
Description
Usage
Tests_XMLRPC_wp_newPost::test_invalid_post_status();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/xmlrpc/wp/newPost.php
Lines:
1 to 12 of 12
public function test_invalid_post_status() { $this->make_user_by_role( 'author' ); $post = array( 'post_title' => 'Test', 'post_status' => 'foobar_status', ); $result = $this->myxmlrpcserver->wp_newPost( array( 1, 'author', 'author', $post ) ); $this->assertNotIXRError( $result ); $this->assertSame( 'draft', get_post_status( $result ) ); }