You appear to be a bot. Output may be restricted
Description
Usage
Tests_Admin_Includes_Post::test_post_add_meta_empty_is_allowed();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/admin/includesPost.php
Lines:
1 to 14 of 14
public function test_post_add_meta_empty_is_allowed() { $p = self::factory()->post->create(); $_POST = array( 'metakeyinput' => 'testkey', 'metavalue' => '', ); wp_set_current_user( self::$admin_id ); $this->assertNotFalse( add_meta( $p ) ); $this->assertEquals( '', get_post_meta( $p, 'testkey', true ) ); }