mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
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:
@@ -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' );
|
||||
|
||||
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user