diff --git a/tests/framework/caching/CacheTestCase.php b/tests/framework/caching/CacheTestCase.php index cb9df3c5086..40b28a72c8f 100644 --- a/tests/framework/caching/CacheTestCase.php +++ b/tests/framework/caching/CacheTestCase.php @@ -156,6 +156,13 @@ public function testArrayAccess() $this->assertInstanceOf('stdClass', $cache['arrayaccess_test']); } + public function testGetValueNonExistent() + { + $cache = $this->getCacheInstance(); + + $this->assertFalse($this->invokeMethod($cache, 'getValue', ['non_existent_key'])); + } + public function testGetNonExistent() { $cache = $this->getCacheInstance();