diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-26 15:00:45 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-26 15:00:45 -0500 |
commit | f2ad22439fd0a5ea47bd2d4ee22c51f663949a8b (patch) | |
tree | 17d89da2c8294a4bfca3c6393e538717a137f192 /tests/notification/base.php | |
parent | 4f0dd9a752c79004acdfbedce92234c6818b9765 (diff) | |
download | forums-f2ad22439fd0a5ea47bd2d4ee22c51f663949a8b.tar forums-f2ad22439fd0a5ea47bd2d4ee22c51f663949a8b.tar.gz forums-f2ad22439fd0a5ea47bd2d4ee22c51f663949a8b.tar.bz2 forums-f2ad22439fd0a5ea47bd2d4ee22c51f663949a8b.tar.xz forums-f2ad22439fd0a5ea47bd2d4ee22c51f663949a8b.zip |
[ticket/11744] Empty notifications tables after testing them
PHPBB3-11744
Diffstat (limited to 'tests/notification/base.php')
-rw-r--r-- | tests/notification/base.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/notification/base.php b/tests/notification/base.php index ab92f88262..3560ac6fcd 100644 --- a/tests/notification/base.php +++ b/tests/notification/base.php @@ -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; |