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/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.