aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cache/null_driver_test.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-12-01 15:06:32 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-12-01 15:06:32 -0500
commit829b75e5c8d7b053f3988db89f6f9505102c92b3 (patch)
treec3d6da4157194ddc2c0f2d20d0e83c479a05ec22 /tests/cache/null_driver_test.php
parent1e3dff83b3e56353fd97a6581989c478e52ed892 (diff)
downloadforums-829b75e5c8d7b053f3988db89f6f9505102c92b3.tar
forums-829b75e5c8d7b053f3988db89f6f9505102c92b3.tar.gz
forums-829b75e5c8d7b053f3988db89f6f9505102c92b3.tar.bz2
forums-829b75e5c8d7b053f3988db89f6f9505102c92b3.tar.xz
forums-829b75e5c8d7b053f3988db89f6f9505102c92b3.zip
[ticket/9983] Create driver in setup in null driver test.
PHPBB3-9983
Diffstat (limited to 'tests/cache/null_driver_test.php')
-rw-r--r--tests/cache/null_driver_test.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/cache/null_driver_test.php b/tests/cache/null_driver_test.php
index 7bf72931a0..45e53edaa1 100644
--- a/tests/cache/null_driver_test.php
+++ b/tests/cache/null_driver_test.php
@@ -9,18 +9,25 @@
class phpbb_cache_null_driver_test extends phpbb_database_test_case
{
+ protected $driver;
+
public function getDataSet()
{
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
}
- public function test_null_cache_sql()
+ protected function setUp()
{
- $driver = new phpbb_cache_driver_null;
+ parent::setUp();
+
+ $this->driver = new phpbb_cache_driver_null;
+ }
+ public function test_null_cache_sql()
+ {
global $db, $cache;
$db = $this->new_dbal();
- $cache = new phpbb_cache_service($driver);
+ $cache = new phpbb_cache_service($this->driver);
$sql = "SELECT * FROM phpbb_config
WHERE config_name = 'foo'";