Skip to content
Snippets Groups Projects
Commit 50728b04 authored by Matt Clarkson's avatar Matt Clarkson
Browse files

Fix duplicate assertion error using Redis Store

parent a5948af7
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ class Redis extends Store ...@@ -70,7 +70,7 @@ class Redis extends Store
$result = $this->redis->get("{$type}.{$key}"); $result = $this->redis->get("{$type}.{$key}");
if ($result === false) { if ($result === false || $result === null) {
return null; return null;
} }
......
...@@ -48,7 +48,7 @@ class RedisTest extends \PHPUnit_Framework_TestCase ...@@ -48,7 +48,7 @@ class RedisTest extends \PHPUnit_Framework_TestCase
public function getMocked($key) public function getMocked($key)
{ {
return array_key_exists($key, $this->config) ? $this->config[$key] : false; return array_key_exists($key, $this->config) ? $this->config[$key] : null;
} }
public function setMocked($key, $value) public function setMocked($key, $value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment