Changeset 52010 for trunk/tests/phpunit/tests/xmlrpc/wp/newTerm.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/newTerm.php
r48937 r52010 16 16 } 17 17 18 function test_invalid_username_password() {18 public function test_invalid_username_password() { 19 19 $result = $this->myxmlrpcserver->wp_newTerm( array( 1, 'username', 'password', array() ) ); 20 20 $this->assertIXRError( $result ); … … 22 22 } 23 23 24 function test_empty_taxonomy() {24 public function test_empty_taxonomy() { 25 25 $this->make_user_by_role( 'editor' ); 26 26 … … 31 31 } 32 32 33 function test_invalid_taxonomy() {33 public function test_invalid_taxonomy() { 34 34 $this->make_user_by_role( 'editor' ); 35 35 … … 40 40 } 41 41 42 function test_incapable_user() {42 public function test_incapable_user() { 43 43 $this->make_user_by_role( 'subscriber' ); 44 44 … … 49 49 } 50 50 51 function test_empty_term() {51 public function test_empty_term() { 52 52 $this->make_user_by_role( 'editor' ); 53 53 … … 68 68 } 69 69 70 function test_parent_for_nonhierarchical() {70 public function test_parent_for_nonhierarchical() { 71 71 $this->make_user_by_role( 'editor' ); 72 72 … … 88 88 } 89 89 90 function test_parent_invalid() {90 public function test_parent_invalid() { 91 91 $this->make_user_by_role( 'editor' ); 92 92 … … 107 107 } 108 108 109 function test_parent_not_existing() {109 public function test_parent_not_existing() { 110 110 $this->make_user_by_role( 'editor' ); 111 111 … … 128 128 129 129 130 function test_add_term() {131 $this->make_user_by_role( 'editor' ); 132 133 $result = $this->myxmlrpcserver->wp_newTerm( 134 array( 135 1, 136 'editor', 137 'editor', 138 array( 139 'taxonomy' => 'category', 140 'name' => 'test', 141 ), 142 ) 143 ); 144 $this->assertNotIXRError( $result ); 145 $this->assertStringMatchesFormat( '%d', $result ); 146 } 147 148 function test_add_term_with_parent() {130 public function test_add_term() { 131 $this->make_user_by_role( 'editor' ); 132 133 $result = $this->myxmlrpcserver->wp_newTerm( 134 array( 135 1, 136 'editor', 137 'editor', 138 array( 139 'taxonomy' => 'category', 140 'name' => 'test', 141 ), 142 ) 143 ); 144 $this->assertNotIXRError( $result ); 145 $this->assertStringMatchesFormat( '%d', $result ); 146 } 147 148 public function test_add_term_with_parent() { 149 149 $this->make_user_by_role( 'editor' ); 150 150 … … 165 165 } 166 166 167 function test_add_term_with_all() {167 public function test_add_term_with_all() { 168 168 $this->make_user_by_role( 'editor' ); 169 169
Note: See TracChangeset
for help on using the changeset viewer.