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

[ticket/11334] Move unit tests for helper->url() into own file

PHPBB3-11334
This commit is contained in:
Joas Schilling
2013-03-15 14:01:15 +01:00
committed by David King
parent ff9a0e4ef4
commit 9259e635ca
2 changed files with 55 additions and 11 deletions

View File

@@ -7,8 +7,6 @@
*
*/
require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
@@ -42,15 +40,6 @@ class phpbb_controller_controller_test extends phpbb_test_case
$this->assertEquals(2, sizeof($routes));
}
public function test_controller_url_helper()
{
global $phpbb_dispatcher;
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
$helper = new phpbb_controller_helper;
$this->assertEquals($helper->url('foo/bar'),'./app.php?controller=foo/bar');
}
public function test_controller_resolver()
{
$container = new ContainerBuilder();