mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16891] Update test files to work with changed cache service
PHPBB3-16891
This commit is contained in:
3
tests/cache/common_test_case.php
vendored
3
tests/cache/common_test_case.php
vendored
@@ -74,7 +74,8 @@ abstract class phpbb_cache_common_test_case extends phpbb_database_test_case
|
||||
global $db, $cache, $phpbb_root_path, $phpEx;
|
||||
$config = new phpbb\config\config(array());
|
||||
$db = $this->new_dbal();
|
||||
$cache = new \phpbb\cache\service($this->driver, $config, $db, $phpbb_root_path, $phpEx);
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||
$cache = new \phpbb\cache\service($this->driver, $config, $db, $phpbb_dispatcher, $phpbb_root_path, $phpEx);
|
||||
|
||||
$sql = "SELECT * FROM phpbb_config
|
||||
WHERE config_name = 'foo'";
|
||||
|
3
tests/cache/dummy_driver_test.php
vendored
3
tests/cache/dummy_driver_test.php
vendored
@@ -50,7 +50,8 @@ class phpbb_cache_dummy_driver_test extends phpbb_database_test_case
|
||||
global $db, $cache, $phpbb_root_path, $phpEx;
|
||||
$config = new phpbb\config\config(array());
|
||||
$db = $this->new_dbal();
|
||||
$cache = new \phpbb\cache\service($this->driver, $config, $db, $phpbb_root_path, $phpEx);
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||
$cache = new \phpbb\cache\service($this->driver, $config, $db, $phpbb_dispatcher, $phpbb_root_path, $phpEx);
|
||||
|
||||
$sql = "SELECT * FROM phpbb_config
|
||||
WHERE config_name = 'foo'";
|
||||
|
Reference in New Issue
Block a user