mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
[ticket/16123] Purge cache to ensure up to date ban list in tests
PHPBB3-16123
This commit is contained in:
parent
6e20cd5d22
commit
d186df8cb4
1 changed files with 3 additions and 1 deletions
|
@ -28,10 +28,12 @@ class phpbb_functions_validate_user_email_test extends phpbb_database_test_case
|
||||||
|
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
global $phpbb_dispatcher, $phpbb_root_path, $phpEx;
|
global $cache, $phpbb_dispatcher, $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
$cache = new \phpbb\cache\driver\file();
|
||||||
|
$cache->purge();
|
||||||
$this->db = $this->new_dbal();
|
$this->db = $this->new_dbal();
|
||||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||||
$language = new phpbb\language\language(new phpbb\language\language_file_loader($phpbb_root_path, $phpEx));
|
$language = new phpbb\language\language(new phpbb\language\language_file_loader($phpbb_root_path, $phpEx));
|
||||||
|
|
Loading…
Add table
Reference in a new issue