- Timestamp:
- 04/12/2017 02:58:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mt/getRecentPostTitles.php
r35242 r40417 8 8 function test_invalid_username_password() { 9 9 $result = $this->myxmlrpcserver->mt_getRecentPostTitles( array( 1, 'username', 'password' ) ); 10 $this->assertI nstanceOf( 'IXR_Error',$result );10 $this->assertIXRError( $result ); 11 11 $this->assertEquals( 403, $result->code ); 12 12 } … … 16 16 17 17 $result = $this->myxmlrpcserver->mt_getRecentPostTitles( array( 1, 'author', 'author' ) ); 18 $this->assertI nstanceOf( 'IXR_Error',$result );18 $this->assertIXRError( $result ); 19 19 $this->assertEquals( 500, $result->code ); 20 20 } … … 26 26 27 27 $result = $this->myxmlrpcserver->mt_getRecentPostTitles( array( 1, 'author', 'author' ) ); 28 $this->assertNotI nstanceOf( 'IXR_Error',$result );28 $this->assertNotIXRError( $result ); 29 29 $this->assertEquals( 0, count( $result ) ); 30 30 } … … 36 36 37 37 $results = $this->myxmlrpcserver->mt_getRecentPostTitles( array( 1, 'author', 'author' ) ); 38 $this->assertNotI nstanceOf( 'IXR_Error',$results );38 $this->assertNotIXRError( $results ); 39 39 40 40 foreach( $results as $result ) {
Note: See TracChangeset
for help on using the changeset viewer.