mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-16 10:34:26 +00:00
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:
@@ -11,7 +11,7 @@ class Tests_XMLRPC_Basic extends WP_XMLRPC_UnitTestCase {
|
||||
function test_enabled() {
|
||||
$result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'username', 'password' ) );
|
||||
|
||||
$this->assertInstanceOf( 'IXR_Error', $result );
|
||||
$this->assertIXRError( $result );
|
||||
// If disabled, 405 would result.
|
||||
$this->assertEquals( 403, $result->code );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user