Coding Standards: Fix WPCS issue in [49007].

See #50913.

git-svn-id: https://develop.svn.wordpress.org/trunk@49008 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-09-20 01:16:57 +00:00
parent cdd15a8f77
commit 2bfa83d882
2 changed files with 2 additions and 2 deletions

View File

@ -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' );

View File

@ -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' );