Fix build, I'm a dork.

This commit is contained in:
mark_story 2011-11-30 21:00:07 -05:00
parent 166e03e7de
commit 4b292b139e
2 changed files with 3 additions and 3 deletions

View file

@ -387,7 +387,7 @@ class Cache {
$settings = self::settings($config);
if (empty($settings)) {
return null;
return false;
}
if (!self::isInitialized($config)) {
return false;

View file

@ -135,8 +135,8 @@ class CacheTest extends CakeTestCase {
public function testReadNonExistingConfig() {
$this->assertFalse(Cache::read('key', 'totally fake'));
$this->assertFalse(Cache::write('key', 'value', 'totally fake'));
$this->assertFalse(Cache::increment('key', 'value', 'totally fake'));
$this->assertFalse(Cache::decrement('key', 'value', 'totally fake'));
$this->assertFalse(Cache::increment('key', 1, 'totally fake'));
$this->assertFalse(Cache::decrement('key', 1, 'totally fake'));
}
/**