mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user