You appear to be a bot. Output may be restricted
Description
Usage
Tests_Option_UpdateOption::test_should_respect_default_option_filter_when_option_does_not_yet_exist_in_database();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/option/updateOption.php
Lines:
1 to 8 of 8
public function test_should_respect_default_option_filter_when_option_does_not_yet_exist_in_database() { add_filter( 'default_option_doesnotexist', array( $this, '__return_foo' ) ); $added = update_option( 'doesnotexist', 'bar' ); remove_filter( 'default_option_doesnotexist', array( $this, '__return_foo' ) ); $this->assertTrue( $added ); $this->assertSame( 'bar', get_option( 'doesnotexist' ) ); }