Changeset 40417 for trunk/tests/phpunit/tests/xmlrpc/wp/getPostTypes.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/getPostTypes.php
r25002 r40417 7 7 function test_invalid_username_password() { 8 8 $result = $this->myxmlrpcserver->wp_getPostTypes( array( 1, 'username', 'password', 'post' ) ); 9 $this->assertI nstanceOf( 'IXR_Error',$result );9 $this->assertIXRError( $result ); 10 10 $this->assertEquals( 403, $result->code ); 11 11 } … … 15 15 16 16 $result = $this->myxmlrpcserver->wp_getPostTypes( array( 1, 'subscriber', 'subscriber' ) ); 17 $this->assertNotI nstanceOf( 'IXR_Error',$result );17 $this->assertNotIXRError( $result ); 18 18 $this->assertInternalType( 'array', $result ); 19 19 $this->assertEquals( 0, count( $result ) ); … … 24 24 25 25 $result = $this->myxmlrpcserver->wp_getPostTypes( array( 1, 'editor', 'editor' ) ); 26 $this->assertNotI nstanceOf( 'IXR_Error',$result );26 $this->assertNotIXRError( $result ); 27 27 $this->assertInternalType( 'array', $result ); 28 28 $this->assertGreaterThan( 0, count( $result ) ); … … 33 33 34 34 $result = $this->myxmlrpcserver->wp_getPostTypes( array( 1, 'editor', 'editor', array( 'hierarchical' => true ) ) ); 35 $this->assertNotI nstanceOf( 'IXR_Error',$result );35 $this->assertNotIXRError( $result ); 36 36 $this->assertInternalType( 'array', $result ); 37 37
Note: See TracChangeset
for help on using the changeset viewer.