mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11744] Empty notifications tables after testing them
PHPBB3-11744
This commit is contained in:
parent
4f0dd9a752
commit
f2ad22439f
1 changed files with 9 additions and 0 deletions
|
@ -96,6 +96,15 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case
|
|||
$this->notifications->set_var('notification_types', $types);
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
{
|
||||
$this->db->sql_query('DELETE FROM phpbb_notification_types');
|
||||
$this->db->sql_query('DELETE FROM phpbb_notifications');
|
||||
$this->db->sql_query('DELETE FROM phpbb_user_notifications');
|
||||
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
protected function build_type($type)
|
||||
{
|
||||
global $phpbb_root_path, $phpEx;
|
||||
|
|
Loading…
Add table
Reference in a new issue