mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/12631] Add finder.not_use_cache
PHPBB3-12631
This commit is contained in:
committed by
Marc Alexander
parent
38024d14bf
commit
9308764fae
@@ -74,7 +74,7 @@ abstract class phpbb_database_test_case extends TestCase
|
||||
|
||||
$setup_extensions = static::setup_extensions();
|
||||
|
||||
$finder = new \phpbb\finder($phpbb_root_path, null, $phpEx);
|
||||
$finder = new \phpbb\finder\finder(null, true, $phpbb_root_path, $phpEx);
|
||||
$finder->core_path('phpbb/db/migration/data/');
|
||||
if (!empty($setup_extensions))
|
||||
{
|
||||
|
@@ -365,7 +365,7 @@ class phpbb_database_test_connection_manager
|
||||
{
|
||||
global $phpbb_root_path, $phpEx, $table_prefix;
|
||||
|
||||
$finder = new \phpbb\finder($phpbb_root_path, null, $phpEx);
|
||||
$finder = new \phpbb\finder\finder(null, true, $phpbb_root_path, $phpEx);
|
||||
$classes = $finder->core_path('phpbb/db/migration/data/')
|
||||
->get_classes();
|
||||
|
||||
|
@@ -239,6 +239,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
$config = new \phpbb\config\config(array('version' => PHPBB_VERSION));
|
||||
$db = $this->get_db();
|
||||
$factory = new \phpbb\db\tools\factory();
|
||||
$finder_factory = new \phpbb\finder\factory(null, false, $phpbb_root_path, $phpEx);
|
||||
$db_tools = $factory->get($db);
|
||||
|
||||
$container = new phpbb_mock_container_builder();
|
||||
@@ -262,9 +263,9 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
$container,
|
||||
$db,
|
||||
$config,
|
||||
$finder_factory,
|
||||
self::$config['table_prefix'] . 'ext',
|
||||
__DIR__ . '/',
|
||||
$phpEx,
|
||||
new \phpbb\cache\service($this->get_cache_driver(), $config, $this->db, $phpbb_root_path, $phpEx)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user