diff --git a/tests/phpunit/tests/comment-submission.php b/tests/phpunit/tests/comment-submission.php index eb52fb0efb..6864c776b0 100644 --- a/tests/phpunit/tests/comment-submission.php +++ b/tests/phpunit/tests/comment-submission.php @@ -811,7 +811,7 @@ class Tests_Comment_Submission extends WP_UnitTestCase { remove_filter( 'preprocess_comment', array( $this, 'filter_preprocess_comment' ) ); $this->assertNotWPError( $comment ); - $this->assertSameSets( + $this->assertSameSetsWithIndex( array( 'comment_post_ID' => self::$post->ID, 'comment_author' => $user->display_name,