You appear to be a bot. Output may be restricted
Description
Usage
Tests_XMLRPC_wp_newTerm::test_empty_term();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/xmlrpc/wp/newTerm.php
Lines:
1 to 19 of 19
public function test_empty_term() { $this->make_user_by_role( 'editor' ); $result = $this->myxmlrpcserver->wp_newTerm( array( 1, 'editor', 'editor', array( 'taxonomy' => 'category', 'name' => '', ), ) ); $this->assertIXRError( $result ); $this->assertSame( 403, $result->code ); $this->assertSame( __( 'The term name cannot be empty.' ), $result->message ); }