Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/mw/getRecentPosts.php
- Timestamp:
- 04/12/2017 02:58:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mw/getRecentPosts.php
r39189 r40417 21 21 function test_invalid_username_password() { 22 22 $result = $this->myxmlrpcserver->mw_getRecentPosts( array( 1, '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->mw_getRecentPosts( array( 1, 'subscriber', 'subscriber' ) ); 34 $this->assertI nstanceOf( 'IXR_Error',$result );34 $this->assertIXRError( $result ); 35 35 $this->assertEquals( 401, $result->code ); 36 36 } … … 40 40 41 41 $result = $this->myxmlrpcserver->mw_getRecentPosts( array( 1, 'author', 'author' ) ); 42 $this->assertNotI nstanceOf( 'IXR_Error',$result );42 $this->assertNotIXRError( $result ); 43 43 $this->assertEquals( 0, count( $result ) ); 44 44 } … … 49 49 $fields = array( 'post' ); 50 50 $results = $this->myxmlrpcserver->mw_getRecentPosts( array( 1, 'author', 'author' ) ); 51 $this->assertNotI nstanceOf( 'IXR_Error',$results );51 $this->assertNotIXRError( $results ); 52 52 53 53 foreach( $results as $result ) { … … 100 100 101 101 $results = $this->myxmlrpcserver->mw_getRecentPosts( array( self::$post_id, 'author', 'author' ) ); 102 $this->assertNotI nstanceOf( 'IXR_Error',$results );102 $this->assertNotIXRError( $results ); 103 103 104 104 foreach( $results as $result ) { … … 120 120 121 121 $results = $this->myxmlrpcserver->mw_getRecentPosts( array( 1, 'editor', 'editor' ) ); 122 $this->assertNotI nstanceOf( 'IXR_Error',$results );122 $this->assertNotIXRError( $results ); 123 123 124 124 foreach( $results as $result ) {
Note: See TracChangeset
for help on using the changeset viewer.