[ticket/16123] Purge cache to ensure up to date ban list in tests

PHPBB3-16123
This commit is contained in:
Marc Alexander 2019-09-07 21:57:38 +02:00
parent 6e20cd5d22
commit d186df8cb4
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -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));