Make WordPress Core


Ignore:
Timestamp:
04/12/2017 02:58:33 PM (7 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/basic.php

    r37980 r40417  
    1212        $result = $this->myxmlrpcserver->wp_getOptions( array( 1, 'username', 'password' ) );
    1313
    14         $this->assertInstanceOf( 'IXR_Error', $result );
     14        $this->assertIXRError( $result );
    1515        // If disabled, 405 would result.
    1616        $this->assertEquals( 403, $result->code );
Note: See TracChangeset for help on using the changeset viewer.