[ticket/11744] Empty notifications tables after testing them

PHPBB3-11744
This commit is contained in:
Nathaniel Guse 2013-07-26 15:00:45 -05:00
parent 4f0dd9a752
commit f2ad22439f

View file

@ -96,6 +96,15 @@ abstract class phpbb_tests_notification_base extends phpbb_database_test_case
$this->notifications->set_var('notification_types', $types); $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) protected function build_type($type)
{ {
global $phpbb_root_path, $phpEx; global $phpbb_root_path, $phpEx;