aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cache/null_driver_test.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-12-01 18:49:27 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-12-01 18:49:27 -0500
commitc3d1408c52dabcafa314fcc13d19f0c537d3a5df (patch)
tree3960f165f2b094f1dec6e1fa43bd88eb2b6eb0c8 /tests/cache/null_driver_test.php
parent829b75e5c8d7b053f3988db89f6f9505102c92b3 (diff)
downloadforums-c3d1408c52dabcafa314fcc13d19f0c537d3a5df.tar
forums-c3d1408c52dabcafa314fcc13d19f0c537d3a5df.tar.gz
forums-c3d1408c52dabcafa314fcc13d19f0c537d3a5df.tar.bz2
forums-c3d1408c52dabcafa314fcc13d19f0c537d3a5df.tar.xz
forums-c3d1408c52dabcafa314fcc13d19f0c537d3a5df.zip
[ticket/9983] get/put cache test moved to a base class.
PHPBB3-9983
Diffstat (limited to 'tests/cache/null_driver_test.php')
-rw-r--r--tests/cache/null_driver_test.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cache/null_driver_test.php b/tests/cache/null_driver_test.php
index 45e53edaa1..efa56762bf 100644
--- a/tests/cache/null_driver_test.php
+++ b/tests/cache/null_driver_test.php
@@ -23,6 +23,16 @@ class phpbb_cache_null_driver_test extends phpbb_database_test_case
$this->driver = new phpbb_cache_driver_null;
}
+ public function test_get_put()
+ {
+ $this->assertSame(false, $this->driver->get('key'));
+
+ $this->driver->put('key', 'value');
+
+ // null driver does not cache
+ $this->assertSame(false, $this->driver->get('key'));
+ }
+
public function test_null_cache_sql()
{
global $db, $cache;