Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.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/getPostType.php
r25002 r40417 32 32 function test_invalid_username_password() { 33 33 $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'username', 'password', 'post' ) ); 34 $this->assertI nstanceOf( 'IXR_Error',$result );34 $this->assertIXRError( $result ); 35 35 $this->assertEquals( 403, $result->code ); 36 36 } … … 40 40 41 41 $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'editor', 'editor', 'foobar' ) ); 42 $this->assertI nstanceOf( 'IXR_Error',$result );42 $this->assertIXRError( $result ); 43 43 $this->assertEquals( 403, $result->code ); 44 44 } … … 48 48 49 49 $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'editor', 'editor', 'post' ) ); 50 $this->assertNotI nstanceOf( 'IXR_Error',$result );50 $this->assertNotIXRError( $result ); 51 51 } 52 52 … … 55 55 56 56 $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'subscriber', 'subscriber', 'post' ) ); 57 $this->assertI nstanceOf( 'IXR_Error',$result );57 $this->assertIXRError( $result ); 58 58 $this->assertEquals( 401, $result->code ); 59 59 } … … 63 63 64 64 $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'editor', 'editor', $this->cpt_name, array( 'labels', 'cap', 'menu', 'taxonomies' ) ) ); 65 $this->assertNotI nstanceOf( 'IXR_Error',$result );65 $this->assertNotIXRError( $result ); 66 66 67 67 // check data types
Note: See TracChangeset
for help on using the changeset viewer.