Changeset 40916 for trunk/tests/phpunit/tests/xmlrpc/wp/newTerm.php
- Timestamp:
- 06/18/2017 10:39:12 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/newTerm.php
r40417 r40916 107 107 $this->assertStringMatchesFormat( '%d', $result ); 108 108 } 109 110 /** 111 * @ticket 35991 112 */ 113 public function test_add_term_meta() { 114 $this->make_user_by_role( 'editor' ); 115 $result = $this->myxmlrpcserver->wp_newTerm( array( 116 1, 117 'editor', 118 'editor', 119 array( 120 'taxonomy' => 'category', 121 'name' => 'Test meta', 122 'custom_fields' => array( 123 array( 124 'key' => 'key1', 125 'value' => 'value1', 126 ), 127 ), 128 ), 129 ) ); 130 $this->assertNotIXRError( $result ); 131 $this->assertStringMatchesFormat( '%d', $result ); 132 } 109 133 }
Note: See TracChangeset
for help on using the changeset viewer.