From f043ad7e024027e40f8c7b1bf4bbce9261db08d5 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Mon, 4 Jul 2016 19:07:21 +0000 Subject: [PATCH] Unit Tests: Remove an unused parameter from `Tests_Ajax_DimComment::test_with_bad_id()`. Prevents a "too few arguments" error in PHP 7.1.0. Fixes #37271. git-svn-id: https://develop.svn.wordpress.org/trunk@37950 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/ajax/DimComment.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/tests/ajax/DimComment.php b/tests/phpunit/tests/ajax/DimComment.php index ba06f4271e..b3930200b4 100644 --- a/tests/phpunit/tests/ajax/DimComment.php +++ b/tests/phpunit/tests/ajax/DimComment.php @@ -161,10 +161,9 @@ class Tests_Ajax_DimComment extends WP_Ajax_UnitTestCase { /** * Test with a bad id * Expects test to fail - * @param mixed $comment Comment object * @return void */ - public function test_with_bad_id( $comment ) { + public function test_with_bad_id() { // Reset request $this->_clear_post_action();