Make WordPress Core


Ignore:
Timestamp:
08/08/2022 11:33:11 PM (2 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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() {
Note: See TracChangeset for help on using the changeset viewer.