Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getPages.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/getPages.php
r39189 r40417 27 27 function test_invalid_username_password() { 28 28 $result = $this->myxmlrpcserver->wp_getPages( array( 1, 'username', 'password' ) ); 29 $this->assertI nstanceOf( 'IXR_Error',$result );29 $this->assertIXRError( $result ); 30 30 $this->assertEquals( 403, $result->code ); 31 31 } … … 35 35 36 36 $result = $this->myxmlrpcserver->wp_getPages( array( 1, 'contributor', 'contributor' ) ); 37 $this->assertI nstanceOf( 'IXR_Error',$result );37 $this->assertIXRError( $result ); 38 38 $this->assertEquals( 401, $result->code ); 39 39 } … … 41 41 function test_capable_user() { 42 42 $results = $this->myxmlrpcserver->wp_getPages( array( 1, 'administrator', 'administrator' ) ); 43 $this->assertNotI nstanceOf( 'IXR_Error',$results );43 $this->assertNotIXRError( $results ); 44 44 45 45 foreach( $results as $result ) { … … 66 66 67 67 $results = $this->myxmlrpcserver->wp_getPages( array( 1, 'editor', 'editor' ) ); 68 $this->assertNotI nstanceOf( 'IXR_Error',$results );68 $this->assertNotIXRError( $results ); 69 69 70 70 $found_incapable = false; 71 71 foreach( $results as $result ) { 72 72 // WP#20629 73 $this->assertNotI nstanceOf( 'IXR_Error',$result );73 $this->assertNotIXRError( $result ); 74 74 75 75 if ( $result['page_id'] == self::$post_id ) {
Note: See TracChangeset
for help on using the changeset viewer.