mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12483] Close database connection when tearDown() is called
Similar to phpbb_database_test_case::tearDown() PHPBB3-12483
This commit is contained in:
parent
13217fe3ff
commit
7b0b6a99c0
1 changed files with 11 additions and 0 deletions
|
@ -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
|
* Perform a request to page
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue