Build/Test tools: Introduce and implement assertNotIXRError() and assertIXRError() assertion methods.

This aids in debugging XMLRPC tests which fail, by exposing the `IXR_Error` error message in the assertion failure message.

Fixes #40423


git-svn-id: https://develop.svn.wordpress.org/trunk@40417 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2017-04-12 14:58:33 +00:00
parent 043d3b54a8
commit 620280474f
37 changed files with 263 additions and 252 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class Tests_XMLRPC_wp_uploadFile extends WP_XMLRPC_UnitTestCase {
$result = $this->myxmlrpcserver->mw_newMediaObject( array( 0, 'editor', 'editor', $data ) );
$this->assertNotInstanceOf( 'IXR_Error', $result );
$this->assertNotIXRError( $result );
// check data types
$this->assertInternalType( 'string', $result['id'] );