You appear to be a bot. Output may be restricted
Description
Usage
Tests_Option_UpdateOption::test_should_set_autoload_yes_for_nonexistent_option_when_autoload_param_is_yes();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/option/updateOption.php
Lines:
1 to 17 of 17
public function test_should_set_autoload_yes_for_nonexistent_option_when_autoload_param_is_yes() { global $wpdb; $this->flush_cache(); update_option( 'test_update_option_default', 'value', 'yes' ); $this->flush_cache(); // Populate the alloptions cache, which includes autoload=yes options. wp_load_alloptions(); $before = $wpdb->num_queries; $value = get_option( 'test_update_option_default' ); $after = $wpdb->num_queries; $this->assertSame( $before, $after ); $this->assertSame( $value, 'value' ); }