Changeset 44153 for trunk/tests/phpunit/tests/admin/includesPost.php
- Timestamp:
- 12/14/2018 03:16:56 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43811
- Property svn:mergeinfo changed
-
trunk/tests/phpunit/tests/admin/includesPost.php
r44122 r44153 800 800 $this->assertSame( array( 'icon' => 'text' ), $blocks[ $name ] ); 801 801 } 802 803 /** 804 * @ticket 43559 805 */ 806 public function test_post_add_meta_empty_is_allowed() { 807 $p = self::factory()->post->create(); 808 809 $_POST = array( 810 'metakeyinput' => 'testkey', 811 'metavalue' => '', 812 ); 813 814 wp_set_current_user( self::$admin_id ); 815 816 $this->assertNotFalse( add_meta( $p ) ); 817 $this->assertEquals( '', get_post_meta( $p, 'testkey', true ) ); 818 } 802 819 }
Note: See TracChangeset
for help on using the changeset viewer.