Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/newComment.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/newComment.php
r39045 r40417 14 14 ) ) ); 15 15 16 $this->assertNotI nstanceOf( 'IXR_Error',$result );16 $this->assertNotIXRError( $result ); 17 17 } 18 18 … … 25 25 ) ) ); 26 26 27 $this->assertI nstanceOf( 'IXR_Error',$result );27 $this->assertIXRError( $result ); 28 28 $this->assertEquals( 403, $result->code ); 29 29 } … … 41 41 ) ) ); 42 42 43 $this->assertI nstanceOf( 'IXR_Error',$result );43 $this->assertIXRError( $result ); 44 44 $this->assertEquals( 403, $result->code ); 45 45 } … … 55 55 // First time it's a valid comment 56 56 $result = $this->myxmlrpcserver->wp_newComment( $comment_args ); 57 $this->assertNotI nstanceOf( 'IXR_Error',$result );57 $this->assertNotIXRError( $result ); 58 58 59 59 // Run second time for duplication error 60 60 $result = $this->myxmlrpcserver->wp_newComment( $comment_args ); 61 61 62 $this->assertI nstanceOf( 'IXR_Error',$result );62 $this->assertIXRError( $result ); 63 63 $this->assertEquals( 403, $result->code ); 64 64 }
Note: See TracChangeset
for help on using the changeset viewer.