diff options
| author | David King <imkingdavid@gmail.com> | 2012-03-18 16:50:41 -0400 |
|---|---|---|
| committer | David King <imkingdavid@gmail.com> | 2012-03-19 09:12:34 -0400 |
| commit | 76e61951942048e3e98dbe60a3683d5269a4fa0e (patch) | |
| tree | 1ba70d747f612d8716b76b4578ee1ad7ec693171 /tests/test_framework/phpbb_functional_test_case.php | |
| parent | 7d1e4bca334dc9fcef3eb6e62cb412226ebc7ca4 (diff) | |
| download | forums-76e61951942048e3e98dbe60a3683d5269a4fa0e.tar forums-76e61951942048e3e98dbe60a3683d5269a4fa0e.tar.gz forums-76e61951942048e3e98dbe60a3683d5269a4fa0e.tar.bz2 forums-76e61951942048e3e98dbe60a3683d5269a4fa0e.tar.xz forums-76e61951942048e3e98dbe60a3683d5269a4fa0e.zip | |
[ticket/10586] trying to get tests to work
PHPBB3-10586
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
| -rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index b3376891bc..d569556d02 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -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() |
