Build/Test Tools: Misc test enhancements.

See #51344


git-svn-id: https://develop.svn.wordpress.org/trunk@49606 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2020-11-15 17:17:55 +00:00
parent cd9ed5e3ad
commit 82e44bc702
3 changed files with 5 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ abstract class WP_Test_REST_TestCase extends WP_UnitTestCase {
$response = $response->as_error();
}
$this->assertInstanceOf( 'WP_Error', $response );
$this->assertWPError( $response );
$this->assertEquals( $code, $response->get_error_code() );
if ( null !== $status ) {