Changeset 47122 for trunk/tests/phpunit/tests/option/siteOption.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/option/siteOption.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/siteOption.php
r46586 r47122 134 134 } 135 135 136 // #15497 - ensure update_site_option will add options with false-y values 136 /** 137 * Ensure update_site_option() will add options with false-y values. 138 * 139 * @ticket 15497 140 */ 137 141 function test_update_adds_falsey_value() { 138 142 $key = __FUNCTION__; … … 141 145 delete_site_option( $key ); 142 146 $this->assertTrue( update_site_option( $key, $value ) ); 143 $this->flush_cache(); // ensure we're getting the value from the DB147 $this->flush_cache(); // Ensure we're getting the value from the DB. 144 148 $this->assertEquals( $value, get_site_option( $key ) ); 145 149 } 146 150 147 // #18955 - ensure get_site_option doesn't cache the default value for non-existent options 151 /** 152 * Ensure get_site_option() doesn't cache the default value for non-existent options. 153 * 154 * @ticket 18955 155 */ 148 156 function test_get_doesnt_cache_default_value() { 149 157 $option = __FUNCTION__;
Note: See TracChangeset
for help on using the changeset viewer.