Make WordPress Core


Ignore:
Timestamp:
10/02/2015 05:08:13 AM (11 years ago)
Author:
wonderboymusic
Message:

Unit Tests: tests that want to flush the cache should use their instance method instead of calling wp_cache_flush() - more properties need to be wiped out in between tests.

Props ocean90.
See #31491.

File:
1 edited

Legend:

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

    r34759 r34766  
    138138        delete_site_option( $key );
    139139        $this->assertTrue( update_site_option( $key, $value ) );
    140         wp_cache_flush(); // ensure we're getting the value from the DB
     140        $this->flush_cache(); // ensure we're getting the value from the DB
    141141        $this->assertEquals( $value, get_site_option( $key ) );
    142142    }
Note: See TracChangeset for help on using the changeset viewer.