From f8ac867a21714040b5fc2bf2a856ef485138e13c Mon Sep 17 00:00:00 2001 From: Nilambar Sharma Date: Sun, 24 Nov 2024 21:24:24 +0545 Subject: [PATCH] Update test --- .../testdata/plugins/test-plugin-review-phpcs-errors/load.php | 4 ++-- .../tests/Checker/Checks/Plugin_Review_PHPCS_Check_Tests.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/testdata/plugins/test-plugin-review-phpcs-errors/load.php b/tests/phpunit/testdata/plugins/test-plugin-review-phpcs-errors/load.php index 32e42dc30..9e59cf503 100644 --- a/tests/phpunit/testdata/plugins/test-plugin-review-phpcs-errors/load.php +++ b/tests/phpunit/testdata/plugins/test-plugin-review-phpcs-errors/load.php @@ -25,11 +25,11 @@ query_posts( 'cat=3' ); wp_reset_query(); -parse_str( 'first=value&arr[]=foo+bar&arr[]=baz' ); - $str = <<assertArrayHasKey( 'code', $errors['load.php'][12][5][0] ); $this->assertEquals( 'WordPress.WP.DeprecatedFunctions.the_author_emailFound', $errors['load.php'][12][5][0]['code'] ); - // Check for PluginCheck.CodeAnalysis.RequiredFunctionParameters.Missing error on Line no 28 and column no at 1. - $this->assertSame( 'PluginCheck.CodeAnalysis.RequiredFunctionParameters.Missing', $errors['load.php'][28][1][0]['code'] ); + // Check for PluginCheck.CodeAnalysis.RequiredFunctionParameters.Missing error on Line no 34 and column no at 1. + $this->assertSame( 'PluginCheck.CodeAnalysis.RequiredFunctionParameters.Missing', $errors['load.php'][34][1][0]['code'] ); // Check for WordPress.Security.ValidatedSanitizedInput warnings on Line no 15 and column no at 27. $this->assertCount( 1, wp_list_filter( $warnings['load.php'][15][27], array( 'code' => 'WordPress.Security.ValidatedSanitizedInput.InputNotValidated' ) ) );