Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getPage.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/getPage.php
r39189 r40417 21 21 function test_invalid_username_password() { 22 22 $result = $this->myxmlrpcserver->wp_getPage( array( 1, self::$post_id, 'username', 'password' ) ); 23 $this->assertI nstanceOf( 'IXR_Error',$result );23 $this->assertIXRError( $result ); 24 24 $this->assertEquals( 403, $result->code ); 25 25 } … … 32 32 33 33 $result = $this->myxmlrpcserver->wp_getPage( array( 1, 9999, 'editor', 'editor' ) ); 34 $this->assertI nstanceOf( 'IXR_Error',$result );34 $this->assertIXRError( $result ); 35 35 $this->assertEquals( 404, $result->code ); 36 36 } … … 40 40 41 41 $result = $this->myxmlrpcserver->wp_getPage( array( 1, self::$post_id, 'editor', 'editor' ) ); 42 $this->assertNotI nstanceOf( 'IXR_Error',$result );42 $this->assertNotIXRError( $result ); 43 43 44 44 // Check data types … … 81 81 82 82 $result = $this->myxmlrpcserver->wp_getPage( array( 1, self::$post_id, 'editor', 'editor' ) ); 83 $this->assertNotI nstanceOf( 'IXR_Error',$result );83 $this->assertNotIXRError( $result ); 84 84 85 85 $this->assertInstanceOf( 'IXR_Date', $result['dateCreated'] );
Note: See TracChangeset
for help on using the changeset viewer.