1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/11497] Rename set_ext_finder in find_routing_files

PHPBB3-11497
This commit is contained in:
Tristan Darricau
2014-05-05 18:20:14 +02:00
parent 78e1d119f5
commit 346c6f3998
7 changed files with 8 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ class phpbb_controller_controller_test extends phpbb_test_case
public function test_provider()
{
$provider = new \phpbb\controller\provider();
$provider->set_ext_finder($this->extension_manager->get_finder());
$provider->find_routing_files($this->extension_manager->get_finder());
$routes = $provider->find(__DIR__)->get_routes();
// This will need to be updated if any new routes are defined

View File

@@ -45,7 +45,7 @@ class phpbb_controller_helper_route_test extends phpbb_test_case
new phpbb_mock_cache()
);
$this->provider = new \phpbb\controller\provider();
$this->provider->set_ext_finder($finder);
$this->provider->find_routing_files($finder);
$this->provider->find(dirname(__FILE__) . '/');
}

View File

@@ -16,7 +16,7 @@ class phpbb_mock_controller_helper extends \phpbb\controller\helper
$this->config = $config;
$this->phpbb_root_path = $phpbb_root_path;
$this->php_ext = $php_ext;
$provider->set_ext_finder($manager->get_finder());
$provider->find_routing_files($manager->get_finder());
$this->route_collection = $provider->find($phpbb_root_path_ext)->get_routes();
}
}

View File

@@ -40,7 +40,7 @@ class phpbb_pagination_pagination_test extends phpbb_template_template_test_case
$this->config = new \phpbb\config\config(array('enable_mod_rewrite' => '1'));
$provider = new \phpbb\controller\provider();
$provider->set_ext_finder($this->finder);
$provider->find_routing_files($this->finder);
$provider->find(dirname(__FILE__) . '/');
$this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $provider, $manager, '', 'php', dirname(__FILE__) . '/');
$this->pagination = new \phpbb\pagination($this->template, $this->user, $this->helper);