Permalink
Browse files

Fix build, I'm a dork.

  • Loading branch information...
1 parent 166e03e commit 4b292b139ed70968554f49dac6dfbb1ab4cc8e78 @markstory markstory committed Dec 1, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/Cake/Cache/Cache.php
  2. +2 −2 lib/Cake/Test/Case/Cache/CacheTest.php
View
@@ -387,7 +387,7 @@ public static function decrement($key, $offset = 1, $config = 'default') {
$settings = self::settings($config);
if (empty($settings)) {
- return null;
+ return false;
}
if (!self::isInitialized($config)) {
return false;
@@ -135,8 +135,8 @@ public function testInvalidConfig() {
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'));
}
/**

0 comments on commit 4b292b1

Please sign in to comment.