diff options
Diffstat (limited to 'tests/pagination')
| -rw-r--r-- | tests/pagination/config/test/routing/environment.yml (renamed from tests/pagination/config/routing.yml) | 0 | ||||
| -rw-r--r-- | tests/pagination/pagination_test.php | 14 | 
2 files changed, 4 insertions, 10 deletions
| diff --git a/tests/pagination/config/routing.yml b/tests/pagination/config/test/routing/environment.yml index dd667274cd..dd667274cd 100644 --- a/tests/pagination/config/routing.yml +++ b/tests/pagination/config/test/routing/environment.yml diff --git a/tests/pagination/pagination_test.php b/tests/pagination/pagination_test.php index 494c667198..1b9e8c751c 100644 --- a/tests/pagination/pagination_test.php +++ b/tests/pagination/pagination_test.php @@ -36,17 +36,11 @@ class phpbb_pagination_pagination_test extends phpbb_template_template_test_case  		$filesystem = new \phpbb\filesystem();  		$manager = new phpbb_mock_extension_manager(dirname(__FILE__) . '/', array()); -		$finder = new \phpbb\finder( -			$filesystem, -			dirname(__FILE__) . '/', -			new phpbb_mock_cache() -		); -		$finder->set_extensions(array_keys($manager->all_enabled()));  		$this->config = new \phpbb\config\config(array('enable_mod_rewrite' => '1')); -		$provider = new \phpbb\controller\provider(); -		$provider->find_routing_files($finder); -		$provider->find(dirname(__FILE__) . '/'); +		$router = new phpbb_mock_router($manager, dirname(__FILE__) . '/', 'php', PHPBB_ENVIRONMENT); +		$router->find_routing_files($manager->all_enabled()); +		$router->find(dirname(__FILE__) . '/');  		$request = new phpbb_mock_request();  		$request->overwrite('SCRIPT_NAME', '/app.php', \phpbb\request\request_interface::SERVER); @@ -57,7 +51,7 @@ class phpbb_pagination_pagination_test extends phpbb_template_template_test_case  			$request  		); -		$this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $provider, $manager, $symfony_request, $request, $filesystem, '', 'php', dirname(__FILE__) . '/'); +		$this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $router, $symfony_request, $request, $filesystem, '', 'php', dirname(__FILE__) . '/');  		$this->pagination = new \phpbb\pagination($this->template, $this->user, $this->helper, $phpbb_dispatcher);  	} | 
