WordPress.org

Make WordPress Core

Changeset 1139 in tests


Ignore:
Timestamp:
11/16/12 19:14:24 (2 years ago)
Author:
ryan
Message:

Update cache tests to work with external cache backends.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/cache.php

    r1060 r1139  
    9696 
    9797    function test_flush() { 
     98        global $_wp_using_ext_object_cache; 
     99 
     100        if ( $_wp_using_ext_object_cache ) 
     101            return; 
     102 
    98103        $key = rand_str(); 
    99104        $val = rand_str(); 
     
    205210        $this->assertFalse( $this->cache->get( $key ) ); 
    206211 
    207         // Delete returns (bool) true when key is not set and $force is true 
    208         $this->assertTrue( $this->cache->delete( $key, 'default', true ) ); 
    209212        $this->assertFalse( $this->cache->delete( $key, 'default') ); 
    210213    } 
Note: See TracChangeset for help on using the changeset viewer.