Make WordPress Core

Changeset 53865


Ignore:
Timestamp:
08/08/2022 11:33:11 PM (4 years ago)
Author:
azaozz
Message:

Build/Test Tools: Add @covers tags to the options tests.

Props pbearne, jrf, hellofromTonya, patopaiar, ironprogrammer, antonvlasenko, SergeyBiryukov, costdev.
See #39265.

Location:
trunk/tests/phpunit/tests/option
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/option/multisite.php

    r53494 r53865  
    1212        class Tests_Option_Multisite extends WP_UnitTestCase {
    1313
     14                /**
     15                 * @covers ::get_blog_option
     16                 * @covers ::get_option
     17                 * @covers ::add_blog_option
     18                 * @covers ::update_blog_option
     19                 * @covers ::delete_blog_option
     20                 */
    1421                public function test_from_same_site() {
    1522                        $key    = __FUNCTION__ . '_1';
     
    4956                }
    5057
     58                /**
     59                 * @covers ::get_blog_option
     60                 * @covers ::get_option
     61                 * @covers ::add_blog_option
     62                 * @covers ::update_blog_option
     63                 * @covers ::delete_blog_option
     64                 */
    5165                public function test_from_same_site_with_null_blog_id() {
    5266                        $key    = __FUNCTION__ . '_1';
     
    8599                }
    86100
     101                /**
     102                 * @covers ::get_blog_option
     103                 * @covers ::get_option
     104                 * @covers ::add_blog_option
     105                 * @covers ::update_blog_option
     106                 * @covers ::delete_blog_option
     107                 */
    87108                public function test_with_another_site() {
    88109                        $user_id = self::factory()->user->create();
     
    134155                /**
    135156                 * @group multisite
     157                 *
     158                 * @covers ::get_site_option
    136159                 */
    137160                public function test_site_notoptions() {
     
    152175                }
    153176
     177                /**
     178                 * @covers ::users_can_register_signup_filter
     179                 * @covers ::get_site_option
     180                 */
    154181                public function test_users_can_register_signup_filter() {
    155182
    156                         $registration = get_site_option( 'registration' );
     183                        get_site_option( 'registration' );
    157184                        $this->assertFalse( users_can_register_signup_filter() );
    158185
     
    169196                /**
    170197                 * @dataProvider data_illegal_names
     198                 *
     199                 * @covers ::update_site_option
     200                 * @covers ::get_site_option
    171201                 */
    172202                public function test_sanitize_network_option_illegal_names( $option_value, $sanitized_option_value ) {
     
    188218                 * @param $option_value
    189219                 * @param $sanitized_option_value
     220                 *
     221                 * @covers ::update_site_option
     222                 * @covers ::get_site_option
    190223                 */
    191224                public function test_sanitize_network_option_limited_email_domains( $option_value, $sanitized_option_value ) {
     
    199232                 * @param $option_value
    200233                 * @param $sanitized_option_value
     234                 *
     235                 * @covers ::update_site_option
     236                 * @covers ::get_site_option
    201237                 */
    202238                public function test_sanitize_network_option_banned_email_domains( $option_value, $sanitized_option_value ) {
  • trunk/tests/phpunit/tests/option/networkOption.php

    r52010 r53865  
    1515        /**
    1616         * @group ms-required
     17         *
     18         * @covers ::add_site_option
    1719         */
    1820        public function test_add_network_option_not_available_on_other_network() {
     
    2729        /**
    2830         * @group ms-required
     31         *
     32         * @covers ::add_network_option
    2933         */
    3034        public function test_add_network_option_available_on_same_network() {
     
    3943        /**
    4044         * @group ms-required
     45         *
     46         * @covers ::delete_site_option
    4147         */
    4248        public function test_delete_network_option_on_only_one_network() {
     
    5460         * @ticket 22846
    5561         * @group ms-excluded
     62         *
     63         * @covers ::add_network_option
    5664         */
    5765        public function test_add_network_option_is_not_stored_as_autoload_option() {
     
    6876         * @ticket 22846
    6977         * @group ms-excluded
     78         *
     79         * @covers ::update_network_option
    7080         */
    7181        public function test_update_network_option_is_not_stored_as_autoload_option() {
     
    8494         * @param $network_id
    8595         * @param $expected_response
     96         *
     97         * @covers ::add_network_option
    8698         */
    8799        public function test_add_network_option_network_id_parameter( $network_id, $expected_response ) {
     
    97109         * @param $network_id
    98110         * @param $expected_response
     111         *
     112         * @covers ::get_network_option
    99113         */
    100114        public function test_get_network_option_network_id_parameter( $network_id, $expected_response ) {
     
    126140         * @ticket 43506
    127141         * @group ms-required
     142         *
     143         * @covers ::get_network_option
     144         * @covers ::wp_cache_get
     145         * @covers ::wp_cache_delete
    128146         */
    129147        public function test_get_network_option_sets_notoptions_if_option_found() {
     
    150168         * @ticket 43506
    151169         * @group ms-required
     170         *
     171         * @covers ::get_network_option
     172         * @covers ::wp_cache_get
    152173         */
    153174        public function test_get_network_option_sets_notoptions_if_option_not_found() {
     
    175196         *
    176197         * @ticket 44956
     198         *
     199         * @covers ::update_network_option
    177200         */
    178201        public function test_update_network_option_array_with_object() {
  • trunk/tests/phpunit/tests/option/option.php

    r53494 r53865  
    1010        }
    1111
     12        /**
     13         * @covers ::get_option
     14         * @covers ::add_option
     15         * @covers ::update_option
     16         * @covers ::delete_option
     17         */
    1218        public function test_the_basics() {
    1319                $key    = 'key1';
     
    3541        }
    3642
     43        /**
     44         * @covers ::get_option
     45         * @covers ::add_option
     46         * @covers ::delete_option
     47         */
    3748        public function test_default_filter() {
    3849                $value = 'value';
     
    6273        /**
    6374         * @ticket 31047
     75         *
     76         * @covers ::get_option
     77         * @covers ::add_option
    6478         */
    6579        public function test_add_option_should_respect_default_option_filter() {
     
    7286        }
    7387
     88        /**
     89         * @covers ::get_option
     90         * @covers ::add_option
     91         * @covers ::delete_option
     92         * @covers ::update_option
     93         */
    7494        public function test_serialized_data() {
    7595                $key   = __FUNCTION__;
     
    94114         *
    95115         * @param mixed $option_name Option name.
     116         *
     117         * @covers ::get_option
    96118         */
    97119        public function test_get_option_bad_option_name( $option_name ) {
     
    105127         *
    106128         * @param mixed $option_name Option name.
     129         *
     130         * @covers ::add_option
    107131         */
    108132        public function test_add_option_bad_option_name( $option_name ) {
     
    116140         *
    117141         * @param mixed $option_name Option name.
     142         *
     143         * @covers ::update_option
    118144         */
    119145        public function test_update_option_bad_option_name( $option_name ) {
     
    127153         *
    128154         * @param mixed $option_name Option name.
     155         *
     156         * @covers ::delete_option
    129157         */
    130158        public function test_delete_option_bad_option_name( $option_name ) {
     
    155183         *
    156184         * @param mixed $option_name Option name.
     185         *
     186         * @covers ::get_option
    157187         */
    158188        public function test_get_option_valid_but_undesired_option_names( $option_name ) {
     
    166196         *
    167197         * @param mixed $option_name Option name.
     198         *
     199         * @covers ::add_option
    168200         */
    169201        public function test_add_option_valid_but_undesired_option_names( $option_name ) {
     
    177209         *
    178210         * @param mixed $option_name Option name.
     211         *
     212         * @covers ::update_option
    179213         */
    180214        public function test_update_option_valid_but_undesired_option_names( $option_name ) {
     
    188222         *
    189223         * @param mixed $option_name Option name.
     224         *
     225         * @covers ::delete_option
    190226         */
    191227        public function test_delete_option_valid_but_undesired_option_names( $option_name ) {
     
    211247        /**
    212248         * @ticket 23289
     249         *
     250         * @covers ::delete_option
    213251         */
    214252        public function test_special_option_name_alloption() {
     
    219257        /**
    220258         * @ticket 23289
     259         *
     260         * @covers ::delete_option
    221261         */
    222262        public function test_special_option_name_notoptions() {
     
    230270         * @ticket 31119
    231271         * @dataProvider data_option_autoloading
     272         *
     273         * @covers ::add_option
    232274         */
    233275        public function test_option_autoloading( $name, $autoload_value, $expected ) {
  • trunk/tests/phpunit/tests/option/registration.php

    r48937 r53865  
    55 */
    66class Tests_Option_Registration extends WP_UnitTestCase {
     7
     8        /**
     9         * @covers ::register_setting
     10         */
    711        public function test_register() {
    812                register_setting( 'test_group', 'test_option' );
     
    2024        }
    2125
     26        /**
     27         * @covers ::register_setting
     28         * @covers ::apply_filters
     29         */
    2230        public function test_register_with_callback() {
    2331                register_setting( 'test_group', 'test_option', array( $this, 'filter_registered_setting' ) );
     
    2735        }
    2836
     37        /**
     38         * @covers ::register_setting
     39         * @covers WP_REST_Settings_Controller
     40         * @covers ::apply_filters
     41         */
    2942        public function test_register_with_array() {
    3043                register_setting(
     
    4659        /**
    4760         * @ticket 38176
     61         *
     62         * @covers ::register_setting
    4863         */
    4964        public function test_register_with_default() {
     
    6176        /**
    6277         * @ticket 38176
     78         *
     79         * @covers ::register_setting
    6380         */
    6481        public function test_register_with_default_override() {
     
    7895        /**
    7996         * @ticket 38930
     97         *
     98         * @covers ::register_setting
     99         * @covers ::add_option
     100         * @covers ::get_option
    80101         */
    81102        public function test_add_option_with_no_options_cache() {
     
    94115        /**
    95116         * @expectedDeprecated register_setting
     117         *
     118         * @covers ::register_setting
    96119         */
    97120        public function test_register_deprecated_group_misc() {
     
    101124        /**
    102125         * @expectedDeprecated register_setting
     126         *
     127         * @covers ::register_setting
    103128         */
    104129        public function test_register_deprecated_group_privacy() {
     
    108133        /**
    109134         * @ticket 43207
     135         *
     136         * @covers ::register_setting
     137         * @covers ::unregister_setting
    110138         */
    111139        public function test_unregister_setting_removes_default() {
  • trunk/tests/phpunit/tests/option/sanitizeOption.php

    r53494 r53865  
    8282        /**
    8383         * @dataProvider sanitize_option_provider
     84         *
     85         * @covers ::sanitize_option
    8486         */
    8587        public function test_sanitize_option( $option_name, $sanitized, $original ) {
     
    98100        /**
    99101         * @dataProvider upload_path_provider
     102         *
     103         * @covers ::sanitize_option
    100104         */
    101105        public function test_sanitize_option_upload_path( $provided, $expected ) {
     
    105109        /**
    106110         * @ticket 36122
     111         *
     112         * @covers ::sanitize_option
    107113         */
    108114        public function test_emoji_in_blogname_and_description() {
     
    123129        /**
    124130         * @dataProvider permalink_structure_provider
     131         *
     132         * @covers ::sanitize_option
     133         * @covers ::get_settings_errors
    125134         */
    126135        public function test_sanitize_permalink_structure( $provided, $expected, $valid ) {
  • trunk/tests/phpunit/tests/option/siteOption.php

    r52010 r53865  
    99        }
    1010
     11        /**
     12         * @covers ::get_site_option
     13         */
    1114        public function test_get_site_option_returns_false_if_option_does_not_exist() {
    1215                $this->assertFalse( get_site_option( 'doesnotexist' ) );
    1316        }
    1417
     18        /**
     19         * @covers ::add_site_option
     20         * @covers ::delete_site_option
     21         * @covers ::get_site_option
     22         */
    1523        public function test_get_site_option_returns_false_after_deletion() {
    1624                $key   = __FUNCTION__;
     
    2129        }
    2230
     31        /**
     32         * @covers ::add_site_option
     33         * @covers ::get_site_option
     34         */
    2335        public function test_get_site_option_returns_value() {
    2436                $key   = __FUNCTION__;
     
    2840        }
    2941
     42        /**
     43         * @covers ::add_site_option
     44         * @covers ::update_site_option
     45         * @covers ::get_site_option
     46         */
    3047        public function test_get_site_option_returns_updated_value() {
    3148                $key       = __FUNCTION__;
     
    3754        }
    3855
     56        /**
     57         * @covers ::add_filter
     58         * @covers ::get_site_option
     59         * @covers ::remove_filter
     60         */
    3961        public function test_get_site_option_does_not_exist_returns_filtered_default_with_no_default_provided() {
    4062                add_filter( 'default_site_option_doesnotexist', array( $this, '__return_foo' ) );
     
    4466        }
    4567
     68        /**
     69         * @covers ::add_filter
     70         * @covers ::get_site_option
     71         * @covers ::remove_filter
     72         */
    4673        public function test_get_site_option_does_not_exist_returns_filtered_default_with_default_provided() {
    4774                add_filter( 'default_site_option_doesnotexist', array( $this, '__return_foo' ) );
     
    5178        }
    5279
     80        /**
     81         * @covers ::get_site_option
     82         */
    5383        public function test_get_site_option_does_not_exist_returns_provided_default() {
    5484                $this->assertSame( 'bar', get_site_option( 'doesnotexist', 'bar' ) );
    5585        }
    5686
     87        /**
     88         * @covers ::add_site_option
     89         * @covers ::get_site_option
     90         */
    5791        public function test_get_site_option_exists_does_not_return_provided_default() {
    5892                $key   = __FUNCTION__;
     
    6296        }
    6397
     98        /**
     99         * @covers ::add_site_option
     100         * @covers ::add_filter
     101         * @covers ::get_site_option
     102         * @covers ::remove_filter
     103         */
    64104        public function test_get_site_option_exists_does_not_return_filtered_default() {
    65105                $key   = __FUNCTION__;
     
    72112        }
    73113
     114        /**
     115         * @covers ::add_site_option
     116         */
    74117        public function test_add_site_option_returns_true_for_new_option() {
    75118                $key   = __FUNCTION__;
     
    78121        }
    79122
     123        /**
     124         * @covers ::add_site_option
     125         */
    80126        public function test_add_site_option_returns_false_for_existing_option() {
    81127                $key   = __FUNCTION__;
     
    85131        }
    86132
     133        /**
     134         * @covers ::add_site_option
     135         * @covers ::update_site_option
     136         */
    87137        public function test_update_site_option_returns_false_for_same_value() {
    88138                $key   = __FUNCTION__;
     
    92142        }
    93143
     144        /**
     145         * @covers ::add_site_option
     146         * @covers ::update_site_option
     147         */
    94148        public function test_update_site_option_returns_true_for_new_value() {
    95149                $key       = 'key';
     
    100154        }
    101155
     156        /**
     157         * @covers ::add_site_option
     158         * @covers ::delete_site_option
     159         */
    102160        public function test_delete_site_option_returns_true_if_option_exists() {
    103161                $key   = __FUNCTION__;
     
    107165        }
    108166
     167        /**
     168         * @covers ::add_site_option
     169         * @covers ::delete_site_option
     170         */
    109171        public function test_delete_site_option_returns_false_if_option_does_not_exist() {
    110172                $key   = __FUNCTION__;
     
    115177        }
    116178
     179        /**
     180         * @covers ::add_site_option
     181         * @covers ::get_site_option
     182         */
    117183        public function test_site_option_add_and_get_serialized_array() {
    118184                $key   = __FUNCTION__;
     
    125191        }
    126192
     193        /**
     194         * @covers ::add_site_option
     195         * @covers ::get_site_option
     196         */
    127197        public function test_site_option_add_and_get_serialized_object() {
    128198                $key        = __FUNCTION__;
     
    138208         *
    139209         * @ticket 15497
     210         *
     211         * @covers ::update_site_option
     212         * @covers ::get_site_option
    140213         */
    141214        public function test_update_adds_falsey_value() {
     
    153226         *
    154227         * @ticket 18955
     228         *
     229         * @covers ::get_site_option
    155230         */
    156231        public function test_get_doesnt_cache_default_value() {
  • trunk/tests/phpunit/tests/option/siteTransient.php

    r52010 r53865  
    1414        }
    1515
     16        /**
     17         * @covers ::get_site_transient
     18         * @covers ::set_site_transient
     19         * @covers ::delete_site_transient
     20         */
    1621        public function test_the_basics() {
    1722                $key    = 'key1';
     
    3035        }
    3136
     37        /**
     38         * @covers ::get_site_transient
     39         * @covers ::set_site_transient
     40         * @covers ::delete_site_transient
     41         */
    3242        public function test_serialized_data() {
    3343                $key   = __FUNCTION__;
     
    4959         * @ticket 22846
    5060         * @group ms-excluded
     61         *
     62         * @covers ::set_site_transient
     63         * @covers ::wp_load_alloptions
    5164         */
    5265        public function test_set_site_transient_is_not_stored_as_autoload_option() {
  • trunk/tests/phpunit/tests/option/slashes.php

    r53557 r53865  
    2323        /**
    2424         * Tests the model function that expects un-slashed data
     25         *
     26         * @covers ::add_option
     27         * @covers ::get_option
    2528         */
    2629        public function test_add_option() {
     
    3841        /**
    3942         * Tests the model function that expects un-slashed data
     43         *
     44         * @covers ::add_option
     45         * @covers ::update_option
     46         * @covers ::get_option
    4047         */
    4148        public function test_update_option() {
  • trunk/tests/phpunit/tests/option/themeMods.php

    r53494 r53865  
    66class Tests_Option_ThemeMods extends WP_UnitTestCase {
    77
     8        /**
     9         * @covers ::get_theme_mod
     10         */
    811        public function test_theme_mod_default() {
    912                $this->assertFalse( get_theme_mod( 'non_existent' ) );
    1013        }
    1114
     15        /**
     16         * @covers ::get_theme_mod
     17         */
    1218        public function test_theme_mod_defined_default() {
    1319                $this->assertSame( 'default', get_theme_mod( 'non_existent', 'default' ) );
    1420        }
    1521
     22        /**
     23         * @covers ::get_theme_mod
     24         * @covers ::set_theme_mod
     25         */
    1626        public function test_theme_mod_set() {
    1727                $expected = 'value';
     
    2232        /**
    2333         * @ticket 51423
     34         *
     35         * @covers ::set_theme_mod
    2436         */
    2537        public function test_theme_mod_set_with_invalid_theme_mods_option() {
     
    2941        }
    3042
     43        /**
     44         * @covers ::get_theme_mod
     45         * @covers ::set_theme_mod
     46         */
    3147        public function test_theme_mod_update() {
    3248                set_theme_mod( 'test_update', 'first_value' );
     
    3652        }
    3753
     54        /**
     55         * @covers ::set_theme_mod
     56         * @covers ::remove_theme_mod
     57         * @covers ::get_theme_mod
     58         */
    3859        public function test_theme_mod_remove() {
    3960                set_theme_mod( 'test_remove', 'value' );
     
    4667         *
    4768         * @dataProvider data_theme_mod_default_value_with_percent_symbols
     69         *
     70         * @covers ::get_theme_mod
    4871         */
    4972        public function test_theme_mod_default_value_with_percent_symbols( $default, $expected ) {
  • trunk/tests/phpunit/tests/option/transient.php

    r53807 r53865  
    1414        }
    1515
     16        /**
     17         * @covers ::get_transient
     18         * @covers ::set_transient
     19         * @covers ::delete_transient
     20         */
    1621        public function test_the_basics() {
    1722                $key    = 'key1';
     
    3035        }
    3136
     37        /**
     38         * @covers ::get_transient
     39         * @covers ::set_transient
     40         * @covers ::delete_transient
     41         */
    3242        public function test_serialized_data() {
    3343                $key   = rand_str();
     
    4858        /**
    4959         * @ticket 22807
     60         *
     61         * @covers ::get_option
     62         * @covers ::set_transient
     63         * @covers ::update_option
    5064         */
    5165        public function test_transient_data_with_timeout() {
     
    6983        /**
    7084         * @ticket 22807
     85         *
     86         * @covers ::set_transient
     87         * @covers ::get_transient
     88         * @covers ::get_option
     89         * @covers ::update_option
    7190         */
    7291        public function test_transient_add_timeout() {
     
    92111         *
    93112         * @ticket 30380
     113         *
     114         * @covers ::set_transient
     115         * @covers ::get_transient
    94116         */
    95117        public function test_nonexistent_key_dont_delete_if_false() {
     
    120142        /**
    121143         * @ticket 30380
     144         *
     145         * @covers ::set_transient
     146         * @covers ::get_transient
    122147         */
    123148        public function test_nonexistent_key_old_timeout() {
  • trunk/tests/phpunit/tests/option/updateOption.php

    r48937 r53865  
    77        /**
    88         * @ticket 31047
     9         *
     10         * @covers ::add_filter
     11         * @covers ::update_option
     12         * @covers ::remove_filter
    913         */
    1014        public function test_should_respect_default_option_filter_when_option_does_not_yet_exist_in_database() {
     
    1923        /**
    2024         * @ticket 26394
     25         *
     26         * @covers ::update_option
     27         * @covers ::wp_load_alloptions
     28         * @covers ::get_option
    2129         */
    2230        public function test_should_set_autoload_yes_for_nonexistent_option_when_autoload_param_is_missing() {
     
    3947        /**
    4048         * @ticket 26394
     49         *
     50         * @covers ::update_option
     51         * @covers ::wp_load_alloptions
     52         * @covers ::get_option
    4153         */
    4254        public function test_should_set_autoload_yes_for_nonexistent_option_when_autoload_param_is_yes() {
     
    5971        /**
    6072         * @ticket 26394
     73         *
     74         * @covers ::update_option
     75         * @covers ::wp_load_alloptions
     76         * @covers ::get_option
    6177         */
    6278        public function test_should_set_autoload_no_for_nonexistent_option_when_autoload_param_is_no() {
     
    8096        /**
    8197         * @ticket 26394
     98         *
     99         * @covers ::update_option
     100         * @covers ::wp_load_alloptions
     101         * @covers ::get_option
    82102         */
    83103        public function test_should_set_autoload_no_for_nonexistent_option_when_autoload_param_is_false() {
     
    101121        /**
    102122         * @ticket 26394
     123         *
     124         * @covers ::update_option
     125         * @covers ::wp_load_alloptions
     126         * @covers ::get_option
    103127         */
    104128        public function test_autoload_should_be_updated_for_existing_option_when_value_is_changed() {
     
    122146        /**
    123147         * @ticket 26394
     148         *
     149         * @covers ::update_option
     150         * @covers ::wp_load_alloptions
     151         * @covers ::get_option
    124152         */
    125153        public function test_autoload_should_not_be_updated_for_existing_option_when_value_is_unchanged() {
     
    144172        /**
    145173         * @ticket 26394
     174         *
     175         * @covers ::update_option
     176         * @covers ::wp_load_alloptions
     177         * @covers ::get_option
    146178         */
    147179        public function test_autoload_should_not_be_updated_for_existing_option_when_value_is_changed_but_no_value_of_autoload_is_provided() {
     
    161193                $value  = get_option( 'foo' );
    162194
    163                 // 'foo' should still be autoload=yes, so we should see no additional querios.
     195                // 'foo' should still be autoload=yes, so we should see no additional queries.
    164196                $this->assertSame( $before, $wpdb->num_queries );
    165197                $this->assertSame( $value, 'bar2' );
     
    168200        /**
    169201         * @ticket 38903
     202         *
     203         * @covers ::add_option
     204         * @covers ::get_num_queries
     205         * @covers ::update_option
    170206         */
    171207        public function test_update_option_array_with_object() {
  • trunk/tests/phpunit/tests/option/userSettings.php

    r53494 r53865  
    2525        }
    2626
     27        /**
     28         * @covers ::get_user_setting
     29         * @covers ::get_all_user_settings
     30         * @covers ::wp_set_all_user_settings
     31         */
    2732        public function test_set_user_setting() {
    2833                $foo = get_user_setting( 'foo' );
     
    3540        }
    3641
     42        /**
     43         * @covers ::get_user_setting
     44         * @covers ::get_all_user_settings
     45         * @covers ::wp_set_all_user_settings
     46         */
    3747        public function test_set_user_setting_dashes() {
    3848                $foo = get_user_setting( 'foo' );
     
    4555        }
    4656
     57        /**
     58         * @covers ::get_user_setting
     59         * @covers ::get_all_user_settings
     60         * @covers ::wp_set_all_user_settings
     61         */
    4762        public function test_set_user_setting_strip_asterisks() {
    4863                $foo = get_user_setting( 'foo' );
  • trunk/tests/phpunit/tests/option/wpLoadAlloptions.php

    r53494 r53865  
    1313        }
    1414
     15        /**
     16         * @covers ::wp_cache_get
     17         */
    1518        public function test_if_alloptions_is_cached() {
    1619                $this->assertNotEmpty( wp_cache_get( 'alloptions', 'options' ) );
     
    1922        /**
    2023         * @depends test_if_alloptions_is_cached
     24         *
     25         * @covers ::wp_cache_delete
    2126         */
    2227        public function test_if_cached_alloptions_is_deleted() {
     
    2631        /**
    2732         * @depends test_if_alloptions_is_cached
     33         *
     34         * @covers ::wp_load_alloptions
    2835         */
    2936        public function test_if_alloptions_are_retrieved_from_cache() {
     
    3946        /**
    4047         * @depends test_if_cached_alloptions_is_deleted
     48         *
     49         * @covers ::wp_load_alloptions
    4150         */
    4251        public function test_if_alloptions_are_retrieved_from_database() {
     
    5665        /**
    5766         * @depends test_if_cached_alloptions_is_deleted
     67         *
     68         * @covers ::wp_load_alloptions
    5869         */
    5970        public function test_filter_pre_cache_alloptions_is_called() {
     
    8293        /**
    8394         * @depends test_if_alloptions_is_cached
     95         *
     96         * @covers ::wp_load_alloptions
    8497         */
    8598        public function test_filter_pre_cache_alloptions_is_not_called() {
Note: See TracChangeset for help on using the changeset viewer.