diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-04 23:15:56 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-06-10 19:41:36 +0200 |
commit | 7b0b6a99c031bdcbf2bfdf0d7ebbf1784ecbbd59 (patch) | |
tree | e619d6bf68ea2e09dbc99fd56da11625a5819061 /tests/test_framework/phpbb_functional_test_case.php | |
parent | 13217fe3ff391ab958b0d0c6568366875c7d198e (diff) | |
download | forums-7b0b6a99c031bdcbf2bfdf0d7ebbf1784ecbbd59.tar forums-7b0b6a99c031bdcbf2bfdf0d7ebbf1784ecbbd59.tar.gz forums-7b0b6a99c031bdcbf2bfdf0d7ebbf1784ecbbd59.tar.bz2 forums-7b0b6a99c031bdcbf2bfdf0d7ebbf1784ecbbd59.tar.xz forums-7b0b6a99c031bdcbf2bfdf0d7ebbf1784ecbbd59.zip |
[ticket/12483] Close database connection when tearDown() is called
Similar to phpbb_database_test_case::tearDown()
PHPBB3-12483
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
-rw-r--r-- | tests/test_framework/phpbb_functional_test_case.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 110c84927c..36d577aed7 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -108,6 +108,17 @@ class phpbb_functional_test_case extends phpbb_test_case } } + protected function tearDown() + { + parent::tearDown(); + + if ($this->db instanceof \phpbb\db\driver\driver_interface) + { + // Close the database connections again this test + $this->db->sql_close(); + } + } + /** * Perform a request to page * |