Make WordPress Core


Ignore:
Timestamp:
08/08/2022 11:33:11 PM (3 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/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 ) {
Note: See TracChangeset for help on using the changeset viewer.