Changeset 52010 for trunk/tests/phpunit/tests/post/meta.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/meta.php
r51404 r52010 45 45 } 46 46 47 function test_unique_postmeta() {47 public function test_unique_postmeta() { 48 48 // Add a unique post meta item. 49 49 $this->assertIsInt( add_post_meta( self::$post_id, 'unique', 'value', true ) ); … … 68 68 } 69 69 70 function test_nonunique_postmeta() {70 public function test_nonunique_postmeta() { 71 71 // Add two non-unique post meta items. 72 72 $this->assertIsInt( add_post_meta( self::$post_id, 'nonunique', 'value' ) ); … … 105 105 } 106 106 107 function test_update_post_meta() {107 public function test_update_post_meta() { 108 108 // Add a unique post meta item. 109 109 $this->assertIsInt( add_post_meta( self::$post_id, 'unique_update', 'value', true ) ); … … 132 132 } 133 133 134 function test_delete_post_meta() {134 public function test_delete_post_meta() { 135 135 // Add two unique post meta items. 136 136 $this->assertIsInt( add_post_meta( self::$post_id, 'unique_delete', 'value', true ) ); … … 149 149 } 150 150 151 function test_delete_post_meta_by_key() {151 public function test_delete_post_meta_by_key() { 152 152 // Add two unique post meta items. 153 153 $this->assertIsInt( add_post_meta( self::$post_id, 'unique_delete_by_key', 'value', true ) ); … … 166 166 } 167 167 168 function test_get_post_meta_by_id() {168 public function test_get_post_meta_by_id() { 169 169 $mid = add_post_meta( self::$post_id, 'get_post_meta_by_key', 'get_post_meta_by_key_value', true ); 170 170 $this->assertIsInt( $mid ); … … 186 186 } 187 187 188 function test_delete_meta() {188 public function test_delete_meta() { 189 189 $mid = add_post_meta( self::$post_id, 'delete_meta', 'delete_meta_value', true ); 190 190 $this->assertIsInt( $mid ); … … 196 196 } 197 197 198 function test_update_meta() {198 public function test_update_meta() { 199 199 // Add a unique post meta item. 200 200 $mid1 = add_post_meta( self::$post_id, 'unique_update', 'value', true ); … … 234 234 * @ticket 12860 235 235 */ 236 function test_funky_post_meta() {236 public function test_funky_post_meta() { 237 237 $classy = new StdClass(); 238 238 $classy->ID = 1;
Note: See TracChangeset
for help on using the changeset viewer.