Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46586 r47122  
    134134    }
    135135
    136     // #15497 - ensure update_site_option will add options with false-y values
     136    /**
     137     * Ensure update_site_option() will add options with false-y values.
     138     *
     139     * @ticket 15497
     140     */
    137141    function test_update_adds_falsey_value() {
    138142        $key   = __FUNCTION__;
     
    141145        delete_site_option( $key );
    142146        $this->assertTrue( update_site_option( $key, $value ) );
    143         $this->flush_cache(); // ensure we're getting the value from the DB
     147        $this->flush_cache(); // Ensure we're getting the value from the DB.
    144148        $this->assertEquals( $value, get_site_option( $key ) );
    145149    }
    146150
    147     // #18955 - ensure get_site_option doesn't cache the default value for non-existent options
     151    /**
     152     * Ensure get_site_option() doesn't cache the default value for non-existent options.
     153     *
     154     * @ticket 18955
     155     */
    148156    function test_get_doesnt_cache_default_value() {
    149157        $option  = __FUNCTION__;
Note: See TracChangeset for help on using the changeset viewer.