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:
parent
cdd15a8f77
commit
2bfa83d882
@ -363,7 +363,7 @@ class WP_Test_REST_Schema_Sanitization extends WP_UnitTestCase {
|
|||||||
if ( PHP_VERSION_ID >= 80000 ) {
|
if ( PHP_VERSION_ID >= 80000 ) {
|
||||||
$this->expectException( 'PHPUnit_Framework_Error_Warning' ); // For the undefined index.
|
$this->expectException( 'PHPUnit_Framework_Error_Warning' ); // For the undefined index.
|
||||||
} else {
|
} else {
|
||||||
$this->expectException( 'PHPUnit_Framework_Error_Notice' );
|
$this->expectException( 'PHPUnit_Framework_Error_Notice' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setExpectedIncorrectUsage( 'rest_sanitize_value_from_schema' );
|
$this->setExpectedIncorrectUsage( 'rest_sanitize_value_from_schema' );
|
||||||
|
@ -159,7 +159,7 @@ class WP_Test_REST_Schema_Validation extends WP_UnitTestCase {
|
|||||||
if ( PHP_VERSION_ID >= 80000 ) {
|
if ( PHP_VERSION_ID >= 80000 ) {
|
||||||
$this->expectException( 'PHPUnit_Framework_Error_Warning' ); // For the undefined index.
|
$this->expectException( 'PHPUnit_Framework_Error_Warning' ); // For the undefined index.
|
||||||
} else {
|
} else {
|
||||||
$this->expectException( 'PHPUnit_Framework_Error_Notice' );
|
$this->expectException( 'PHPUnit_Framework_Error_Notice' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setExpectedIncorrectUsage( 'rest_validate_value_from_schema' );
|
$this->setExpectedIncorrectUsage( 'rest_validate_value_from_schema' );
|
||||||
|
Loading…
Reference in New Issue
Block a user