From 2bfa83d88201d10d3c657db9152ee49e706205d3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 20 Sep 2020 01:16:57 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issue in [49007]. See #50913. git-svn-id: https://develop.svn.wordpress.org/trunk@49008 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/rest-api/rest-schema-sanitization.php | 2 +- tests/phpunit/tests/rest-api/rest-schema-validation.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/rest-api/rest-schema-sanitization.php b/tests/phpunit/tests/rest-api/rest-schema-sanitization.php index dcefbd3034..242c2f65e7 100644 --- a/tests/phpunit/tests/rest-api/rest-schema-sanitization.php +++ b/tests/phpunit/tests/rest-api/rest-schema-sanitization.php @@ -363,7 +363,7 @@ class WP_Test_REST_Schema_Sanitization extends WP_UnitTestCase { if ( PHP_VERSION_ID >= 80000 ) { $this->expectException( 'PHPUnit_Framework_Error_Warning' ); // For the undefined index. } else { - $this->expectException( 'PHPUnit_Framework_Error_Notice' ); + $this->expectException( 'PHPUnit_Framework_Error_Notice' ); } $this->setExpectedIncorrectUsage( 'rest_sanitize_value_from_schema' ); diff --git a/tests/phpunit/tests/rest-api/rest-schema-validation.php b/tests/phpunit/tests/rest-api/rest-schema-validation.php index a7cbc38e7d..7304ca7d25 100644 --- a/tests/phpunit/tests/rest-api/rest-schema-validation.php +++ b/tests/phpunit/tests/rest-api/rest-schema-validation.php @@ -159,7 +159,7 @@ class WP_Test_REST_Schema_Validation extends WP_UnitTestCase { if ( PHP_VERSION_ID >= 80000 ) { $this->expectException( 'PHPUnit_Framework_Error_Warning' ); // For the undefined index. } else { - $this->expectException( 'PHPUnit_Framework_Error_Notice' ); + $this->expectException( 'PHPUnit_Framework_Error_Notice' ); } $this->setExpectedIncorrectUsage( 'rest_validate_value_from_schema' );