Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getPageList.php
- Timestamp:
- 04/12/2017 02:58:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPageList.php
r39189 r40417 21 21 function test_invalid_username_password() { 22 22 $result = $this->myxmlrpcserver->wp_getPageList( array( 1, 'username', 'password' ) ); 23 $this->assertI nstanceOf( 'IXR_Error',$result );23 $this->assertIXRError( $result ); 24 24 $this->assertEquals( 403, $result->code ); 25 25 } … … 29 29 30 30 $result = $this->myxmlrpcserver->wp_getPageList( array( 1, 'contributor', 'contributor' ) ); 31 $this->assertI nstanceOf( 'IXR_Error',$result );31 $this->assertIXRError( $result ); 32 32 $this->assertEquals( 401, $result->code ); 33 33 } … … 37 37 38 38 $results = $this->myxmlrpcserver->wp_getPageList( array( 1, 'editor', 'editor' ) ); 39 $this->assertNotI nstanceOf( 'IXR_Error',$results );39 $this->assertNotIXRError( $results ); 40 40 41 41 foreach( $results as $result ) {
Note: See TracChangeset
for help on using the changeset viewer.