From 4b292b139ed70968554f49dac6dfbb1ab4cc8e78 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 30 Nov 2011 21:00:07 -0500 Subject: [PATCH] Fix build, I'm a dork. --- lib/Cake/Cache/Cache.php | 2 +- lib/Cake/Test/Case/Cache/CacheTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Cache/Cache.php b/lib/Cake/Cache/Cache.php index 3b933ebac..a5676c781 100644 --- a/lib/Cake/Cache/Cache.php +++ b/lib/Cake/Cache/Cache.php @@ -387,7 +387,7 @@ class Cache { $settings = self::settings($config); if (empty($settings)) { - return null; + return false; } if (!self::isInitialized($config)) { return false; diff --git a/lib/Cake/Test/Case/Cache/CacheTest.php b/lib/Cake/Test/Case/Cache/CacheTest.php index f526a2cfb..7c8369f12 100644 --- a/lib/Cake/Test/Case/Cache/CacheTest.php +++ b/lib/Cake/Test/Case/Cache/CacheTest.php @@ -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')); } /**