Tests: Use correct arguments for `wp_newComment` XML-RPC method.

Fixes #38454
Props markoheijnen


git-svn-id: https://develop.svn.wordpress.org/trunk@38950 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Kovshenin 2016-10-26 07:51:41 +00:00
parent 35e6dbe14f
commit ee14487043
1 changed files with 1 additions and 2 deletions

View File

@ -13,8 +13,7 @@ class Tests_XMLRPC_wp_newComment extends WP_XMLRPC_UnitTestCase {
$this->assertEquals( 'closed', $post->comment_status );
$result = $this->myxmlrpcserver->wp_newComment( array( 1, 'administrator', 'administrator', $post->ID, array(
'comment_content' => rand_str( 100 ),
'status' => 'approved'
'content' => rand_str( 100 ),
) ) );
$this->assertInstanceOf( 'IXR_Error', $result );