From ee14487043389b8349151302b453af41cc411d10 Mon Sep 17 00:00:00 2001 From: Konstantin Kovshenin Date: Wed, 26 Oct 2016 07:51:41 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/xmlrpc/wp/newComment.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/tests/xmlrpc/wp/newComment.php b/tests/phpunit/tests/xmlrpc/wp/newComment.php index eb0f3b7648..2347f0bd1b 100644 --- a/tests/phpunit/tests/xmlrpc/wp/newComment.php +++ b/tests/phpunit/tests/xmlrpc/wp/newComment.php @@ -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 );