wordpress-develop/tests/phpunit/tests/option
Boone Gorges b9e222fd6a Allow $autoload setting to be changed for existing options using update_option().
[31628] made it possible to pass an `$autoload` param to `update_option()` that
applies when the option does not yet exist in the database. The current
changeset introduces parity for existing options: the `$autoload` setting
for existing options can be changed via the `$autoload` parameter. For internal
simplicity, `$autoload` is ignored for existing options when `$value` is not
also changed.

This changeset also moves `update_option()` tests into their own class.

Props dd32.
Fixes #26394.

git-svn-id: https://develop.svn.wordpress.org/trunk@31640 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 13:56:44 +00:00
..
multisite.php Pinking shears in unit test files. 2015-03-05 13:14:28 +00:00
option.php Allow $autoload setting to be changed for existing options using update_option(). 2015-03-06 13:56:44 +00:00
siteOption.php Split and organize multisite unit tests 2014-10-16 05:06:22 +00:00
siteTransient.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
slashes.php Fix typo in a comment in slashing tests. 2015-01-07 07:08:47 +00:00
transient.php Transient timeouts are untestable when WP_INSTALLING is defined and set to ANY value. Transient timeouts cannot be tested during multisite runs because wpmu_create_blog() sets WP_INSTALLING. I have zero idea how these tests ever passed. 2014-07-03 01:16:33 +00:00
updateOption.php Allow $autoload setting to be changed for existing options using update_option(). 2015-03-06 13:56:44 +00:00