Changeset 327 in tests for wp-testcase/test_includes_cache.php
- Timestamp:
- 01/20/2011 02:50:29 PM (15 years ago)
- File:
-
- 1 edited
-
wp-testcase/test_includes_cache.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_cache.php
r280 r327 17 17 18 18 function &init_cache() { 19 $cache = new WP_Object_ cache();19 $cache = new WP_Object_Cache(); 20 20 return $cache; 21 21 } … … 46 46 $val = null; 47 47 48 // you can't store null in the cache49 $this->assertFalse($this->cache->add($key, $val));50 $this->assert False($this->cache->get($key));48 $this->assertTrue( $this->cache->add($key, $val) ); 49 // null is converted to empty string 50 $this->assertEquals( '', $this->cache->get($key) ); 51 51 } 52 52 … … 93 93 $this->assertFalse($this->cache->get($key)); 94 94 } 95 96 95 } 97 96
Note: See TracChangeset
for help on using the changeset viewer.