1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 11:44:08 +02:00

[ticket/10586] trying to get tests to work

PHPBB3-10586
This commit is contained in:
David King
2012-03-18 16:50:41 -04:00
parent 7d1e4bca33
commit 76e6195194
2 changed files with 19 additions and 14 deletions

View File

@@ -14,6 +14,7 @@ class phpbb_functional_test_case extends phpbb_test_case
protected $client;
protected $root_url;
protected $cache = null;
protected $db = null;
static protected $config = array();
@@ -88,8 +89,8 @@ class phpbb_functional_test_case extends phpbb_test_case
protected function get_ext_manager()
{
global $phpbb_root_path, $phpEx;
return new phpbb_extension_manager($this->get_db(), self::$config['table_prefix'] . 'ext', $phpbb_root_path, ".$phpEx", new phpbb_cache_driver_file);
$this->cache = ($this->cache instanceof phpbb_cache_driver_null) ? $this->cache : new phpbb_cache_driver_null;
return new phpbb_extension_manager($this->get_db(), self::$config['table_prefix'] . 'ext', $phpbb_root_path, ".$phpEx", $this->cache);
}
protected function install_board()