Changeset 39382 for trunk/tests/phpunit/tests/option/registration.php
- Timestamp:
- 11/30/2016 09:21:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/registration.php
r38910 r39382 63 63 64 64 /** 65 * @ticket 38930 66 */ 67 public function test_add_option_with_no_options_cache() { 68 register_setting( 'test_group', 'test_default', array( 69 'default' => 'My Default :)', 70 )); 71 wp_cache_delete( 'notoptions', 'options' ); 72 $this->assertTrue( add_option( 'test_default', 'hello' ) ); 73 $this->assertEquals( 'hello', get_option( 'test_default' ) ); 74 } 75 76 /** 65 77 * @expectedDeprecated register_setting 66 78 */
Note: See TracChangeset
for help on using the changeset viewer.