Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getTaxonomy.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/getTaxonomy.php
r38078 r40417 8 8 function test_invalid_username_password() { 9 9 $result = $this->myxmlrpcserver->wp_getTaxonomy( array( 1, 'username', 'password', 'category' ) ); 10 $this->assertI nstanceOf( 'IXR_Error',$result );10 $this->assertIXRError( $result ); 11 11 $this->assertEquals( 403, $result->code ); 12 12 } … … 16 16 17 17 $result = $this->myxmlrpcserver->wp_getTaxonomy( array( 1, 'editor', 'editor', '' ) ); 18 $this->assertI nstanceOf( 'IXR_Error',$result );18 $this->assertIXRError( $result ); 19 19 $this->assertEquals( 403, $result->code ); 20 20 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); … … 25 25 26 26 $result = $this->myxmlrpcserver->wp_getTaxonomy( array( 1, 'editor', 'editor', 'not_existing' ) ); 27 $this->assertI nstanceOf( 'IXR_Error',$result );27 $this->assertIXRError( $result ); 28 28 $this->assertEquals( 403, $result->code ); 29 29 $this->assertEquals( __( 'Invalid taxonomy.' ), $result->message ); … … 34 34 35 35 $result = $this->myxmlrpcserver->wp_getTaxonomy( array( 1, 'subscriber', 'subscriber', 'category' ) ); 36 $this->assertI nstanceOf( 'IXR_Error',$result );36 $this->assertIXRError( $result ); 37 37 $this->assertEquals( 401, $result->code ); 38 38 $this->assertEquals( __( 'Sorry, you are not allowed to assign terms in this taxonomy.' ), $result->message ); … … 43 43 44 44 $result = $this->myxmlrpcserver->wp_getTaxonomy( array( 1, 'editor', 'editor', 'category' ) ); 45 $this->assertNotI nstanceOf( 'IXR_Error',$result );45 $this->assertNotIXRError( $result ); 46 46 } 47 47 … … 50 50 51 51 $result = $this->myxmlrpcserver->wp_getTaxonomy( array( 1, 'editor', 'editor', 'category' ) ); 52 $this->assertNotI nstanceOf( 'IXR_Error',$result );52 $this->assertNotIXRError( $result ); 53 53 $taxonomy = get_taxonomy( 'category' ); 54 54 $this->assertEquals( 'category', $result['name'], 'name' );
Note: See TracChangeset
for help on using the changeset viewer.