mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
[ticket/12631] Rename finder.not_use_cache to finder.cache
PHPBB3-12631
This commit is contained in:
committed by
Marc Alexander
parent
9308764fae
commit
d31e986815
@@ -243,7 +243,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
|
||||
public function test_get_classes_create_cache()
|
||||
{
|
||||
$cache = new phpbb_mock_cache;
|
||||
$finder = new \phpbb\finder\finder($cache, true, __DIR__ . '/', 'php', '_custom_cache_name');
|
||||
$finder = new \phpbb\finder\finder($cache, false, __DIR__ . '/', 'php', '_custom_cache_name');
|
||||
$finder->set_extensions(array_keys($this->extension_manager->all_enabled()));
|
||||
$files = $finder->suffix('_class.php')->get_files();
|
||||
|
||||
@@ -288,7 +288,7 @@ class phpbb_extension_finder_test extends phpbb_test_case
|
||||
md5(serialize($query)) => array('file_name' => 'extension'),
|
||||
),
|
||||
)),
|
||||
true,
|
||||
false,
|
||||
__DIR__ . '/',
|
||||
'_ext_finder'
|
||||
);
|
||||
|
@@ -24,6 +24,7 @@ class phpbb_mock_container_builder implements ContainerInterface
|
||||
$this->setParameter('session.log_errors', false);
|
||||
$this->setParameter('session.force_sid', true);
|
||||
$this->setParameter('finder.not_use_cache', false);
|
||||
$this->setParameter('finder.cache', false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -24,6 +24,6 @@ class phpbb_mock_extension_manager extends \phpbb\extension\manager
|
||||
$this->container = $container;
|
||||
$this->config = new \phpbb\config\config(array());
|
||||
$this->user = new \phpbb\user($lang,'\phpbb\datetime');
|
||||
$this->finder_factory = new \phpbb\finder\factory(null, true, $this->phpbb_root_path, $phpEx);
|
||||
$this->finder_factory = new \phpbb\finder\factory(null, false, $this->phpbb_root_path, $phpEx);
|
||||
}
|
||||
}
|
||||
|
@@ -74,7 +74,7 @@ abstract class phpbb_database_test_case extends TestCase
|
||||
|
||||
$setup_extensions = static::setup_extensions();
|
||||
|
||||
$finder = new \phpbb\finder\finder(null, true, $phpbb_root_path, $phpEx);
|
||||
$finder = new \phpbb\finder\finder(null, false, $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\finder(null, true, $phpbb_root_path, $phpEx);
|
||||
$finder = new \phpbb\finder\finder(null, false, $phpbb_root_path, $phpEx);
|
||||
$classes = $finder->core_path('phpbb/db/migration/data/')
|
||||
->get_classes();
|
||||
|
||||
|
Reference in New Issue
Block a user