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:
parent
35e6dbe14f
commit
ee14487043
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue