mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-02 12:34:59 +02:00
[ticket/11037] Fix unit tests.
PHPBB3-11037
This commit is contained in:
parent
58aa593e39
commit
9c7772040c
5
tests/cache/common_test_case.php
vendored
5
tests/cache/common_test_case.php
vendored
@ -64,9 +64,10 @@ abstract class phpbb_cache_common_test_case extends phpbb_database_test_case
|
||||
|
||||
public function test_cache_sql()
|
||||
{
|
||||
global $db, $cache;
|
||||
global $db, $cache, $phpbb_root_path, $phpEx;
|
||||
$config = new phpbb_config(array());
|
||||
$db = $this->new_dbal();
|
||||
$cache = new phpbb_cache_service($this->driver);
|
||||
$cache = new phpbb_cache_service($this->driver, $config, $db, $phpbb_root_path, $phpEx);
|
||||
|
||||
$sql = "SELECT * FROM phpbb_config
|
||||
WHERE config_name = 'foo'";
|
||||
|
5
tests/cache/null_driver_test.php
vendored
5
tests/cache/null_driver_test.php
vendored
@ -47,9 +47,10 @@ class phpbb_cache_null_driver_test extends phpbb_database_test_case
|
||||
|
||||
public function test_cache_sql()
|
||||
{
|
||||
global $db, $cache;
|
||||
global $db, $cache, $phpbb_root_path, $phpEx;
|
||||
$config = new phpbb_config(array());
|
||||
$db = $this->new_dbal();
|
||||
$cache = new phpbb_cache_service($this->driver);
|
||||
$cache = new phpbb_cache_service($this->driver, $config, $db, $phpbb_root_path, $phpEx);
|
||||
|
||||
$sql = "SELECT * FROM phpbb_config
|
||||
WHERE config_name = 'foo'";
|
||||
|
Loading…
x
Reference in New Issue
Block a user