diff options
| author | David King <imkingdavid@gmail.com> | 2012-02-21 10:53:22 -0500 |
|---|---|---|
| committer | David King <imkingdavid@gmail.com> | 2012-03-19 09:12:33 -0400 |
| commit | a37a28b48546afc880446db7e4b2fd87c70a6cda (patch) | |
| tree | 04c7a0608516c5c783e9f2beb5825dd2791c1645 /tests/test_framework/phpbb_functional_test_case.php | |
| parent | 9212466626a3d80a90cab1f23cf423a1c4e20655 (diff) | |
| download | forums-a37a28b48546afc880446db7e4b2fd87c70a6cda.tar forums-a37a28b48546afc880446db7e4b2fd87c70a6cda.tar.gz forums-a37a28b48546afc880446db7e4b2fd87c70a6cda.tar.bz2 forums-a37a28b48546afc880446db7e4b2fd87c70a6cda.tar.xz forums-a37a28b48546afc880446db7e4b2fd87c70a6cda.zip | |
[ticket/10586] Now tests run, but fail. But here is what I have.
PHPBB3-10586
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
| -rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index b5e6f7e377..b2ae215d91 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -66,6 +66,26 @@ class phpbb_functional_test_case extends phpbb_test_case } } + protected function get_db() + { + global $phpbb_root_path, $phpEx; + if (!class_exists('dbal_' . self::$config['dbms'])) + { + include($phpbb_root_path . 'includes/db/' . self::$config['dbms'] . ".$phpEx"); + } + $sql_db = 'dbal_' . self::$config['dbms']; + $db = new $sql_db(); + $db->sql_connect(self::$config['dbhost'], self::$config['dbuser'], self::$config['dbpasswd'], self::$config['dbname'], self::$config['dbport']); + return $db; + } + + 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_null); + } + protected function install_board() { global $phpbb_root_path, $phpEx; |
