1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/12483] Close database connection when tearDown() is called

Similar to phpbb_database_test_case::tearDown()

PHPBB3-12483
This commit is contained in:
Joas Schilling
2014-05-04 23:15:56 +02:00
parent 13217fe3ff
commit 7b0b6a99c0

View File

@@ -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
*