diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-09-07 21:57:38 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-09-07 21:59:17 +0200 |
commit | d186df8cb40f5375ae7143fb432cb36cafe7d0a1 (patch) | |
tree | 915d2bade4a47a3e2f136d4047dc573aeb9d17ad /tests | |
parent | 6e20cd5d2286e716dc6b9a9b3e7f9e75dcde4f8b (diff) | |
download | forums-d186df8cb40f5375ae7143fb432cb36cafe7d0a1.tar forums-d186df8cb40f5375ae7143fb432cb36cafe7d0a1.tar.gz forums-d186df8cb40f5375ae7143fb432cb36cafe7d0a1.tar.bz2 forums-d186df8cb40f5375ae7143fb432cb36cafe7d0a1.tar.xz forums-d186df8cb40f5375ae7143fb432cb36cafe7d0a1.zip |
[ticket/16123] Purge cache to ensure up to date ban list in tests
PHPBB3-16123
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functions/validate_user_email_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/functions/validate_user_email_test.php b/tests/functions/validate_user_email_test.php index f64d01517c..d23ffc0503 100644 --- a/tests/functions/validate_user_email_test.php +++ b/tests/functions/validate_user_email_test.php @@ -28,10 +28,12 @@ class phpbb_functions_validate_user_email_test extends phpbb_database_test_case protected function setUp() { - global $phpbb_dispatcher, $phpbb_root_path, $phpEx; + global $cache, $phpbb_dispatcher, $phpbb_root_path, $phpEx; parent::setUp(); + $cache = new \phpbb\cache\driver\file(); + $cache->purge(); $this->db = $this->new_dbal(); $phpbb_dispatcher = new phpbb_mock_event_dispatcher(); $language = new phpbb\language\language(new phpbb\language\language_file_loader($phpbb_root_path, $phpEx)); |