Changeset 1139 in tests for trunk/tests/cache.php
- Timestamp:
- 11/16/2012 07:14:24 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/cache.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/cache.php
r1060 r1139 96 96 97 97 function test_flush() { 98 global $_wp_using_ext_object_cache; 99 100 if ( $_wp_using_ext_object_cache ) 101 return; 102 98 103 $key = rand_str(); 99 104 $val = rand_str(); … … 205 210 $this->assertFalse( $this->cache->get( $key ) ); 206 211 207 // Delete returns (bool) true when key is not set and $force is true208 $this->assertTrue( $this->cache->delete( $key, 'default', true ) );209 212 $this->assertFalse( $this->cache->delete( $key, 'default') ); 210 213 }
Note: See TracChangeset
for help on using the changeset viewer.