Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getProfile.php
- Timestamp:
- 04/12/2017 02:58:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getProfile.php
r25394 r40417 9 9 function test_invalid_username_password() { 10 10 $result = $this->myxmlrpcserver->wp_getProfile( array( 1, 'username', 'password' ) ); 11 $this->assertI nstanceOf( 'IXR_Error',$result );11 $this->assertIXRError( $result ); 12 12 $this->assertEquals( 403, $result->code ); 13 13 } … … 17 17 18 18 $result = $this->myxmlrpcserver->wp_getProfile( array( 1, 'subscriber', 'subscriber' ) ); 19 $this->assertNotI nstanceOf( 'IXR_Error',$result );19 $this->assertNotIXRError( $result ); 20 20 $this->assertEquals( $subscriber_id, $result['user_id'] ); 21 21 $this->assertContains( 'subscriber', $result['roles'] ); … … 26 26 27 27 $result = $this->myxmlrpcserver->wp_getProfile( array( 1, 'administrator', 'administrator' ) ); 28 $this->assertNotI nstanceOf( 'IXR_Error',$result );28 $this->assertNotIXRError( $result ); 29 29 $this->assertEquals( $administrator_id, $result['user_id'] ); 30 30 $this->assertContains( 'administrator', $result['roles'] ); … … 37 37 38 38 $result = $this->myxmlrpcserver->wp_getProfile( array( 1, 'editor', 'editor', $fields ) ); 39 $this->assertNotI nstanceOf( 'IXR_Error',$result );39 $this->assertNotIXRError( $result ); 40 40 $this->assertEquals( $editor_id, $result['user_id'] ); 41 41
Note: See TracChangeset
for help on using the changeset viewer.