aboutsummaryrefslogtreecommitdiffstats
path: root/tests/console/cache/purge_test.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-08-07 16:41:16 +0200
committerTristan Darricau <github@nicofuma.fr>2014-09-19 11:09:35 +0200
commit689eaab3e2139d6e485d4cd0da1248f4a8de2404 (patch)
treef8412bfdccc0343afff295518a27d1efe765b0c5 /tests/console/cache/purge_test.php
parentfb08d1b27e86b5413a18d7a820c31e1c8f8490db (diff)
downloadforums-689eaab3e2139d6e485d4cd0da1248f4a8de2404.tar
forums-689eaab3e2139d6e485d4cd0da1248f4a8de2404.tar.gz
forums-689eaab3e2139d6e485d4cd0da1248f4a8de2404.tar.bz2
forums-689eaab3e2139d6e485d4cd0da1248f4a8de2404.tar.xz
forums-689eaab3e2139d6e485d4cd0da1248f4a8de2404.zip
[ticket/12657] The test does not need to depend on the database
PHPBB3-12657
Diffstat (limited to 'tests/console/cache/purge_test.php')
-rw-r--r--tests/console/cache/purge_test.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/console/cache/purge_test.php b/tests/console/cache/purge_test.php
index c950919cc2..ee4e8f5d50 100644
--- a/tests/console/cache/purge_test.php
+++ b/tests/console/cache/purge_test.php
@@ -17,7 +17,7 @@ use phpbb\console\command\cache\purge;
require_once dirname(__FILE__) . '/../../../phpBB/includes/functions_admin.php';
-class phpbb_console_command_cache_purge_test extends phpbb_database_test_case
+class phpbb_console_command_cache_purge_test extends phpbb_test_case
{
protected $cache_dir;
protected $cache;
@@ -30,15 +30,8 @@ class phpbb_console_command_cache_purge_test extends phpbb_database_test_case
$this->cache_dir = dirname(__FILE__) . '/tmp/cache/';
}
- public function getDataSet()
- {
- return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
- }
-
protected function setUp()
{
- parent::setUp();
-
if (file_exists($this->cache_dir))
{
// cache directory possibly left after aborted
@@ -49,7 +42,7 @@ class phpbb_console_command_cache_purge_test extends phpbb_database_test_case
$this->cache = new \phpbb\cache\driver\file($this->cache_dir);
- $this->db = $this->new_dbal();
+ $this->db = $this->getMock('\phpbb\db\driver\driver_interface');
$this->config = new \phpbb\config\config(array('assets_version' => 1));
}