[ticket/12090] Fix helper usage in functional controller tests

PHPBB3-12090
This commit is contained in:
Joas Schilling 2014-03-07 15:14:35 +01:00
parent ecf1e94726
commit 6491477809

View file

@ -63,41 +63,17 @@ class controller
'tests/index.php',
),
array(
$this->helper->url('foo_index_controller'),
$this->helper->route('foo_index_controller'),
$rewrite_prefix . 'index',
),
array(
$this->helper->url('foo_tests_index_controller'),
$this->helper->route('foo_tests_index_controller'),
$rewrite_prefix . 'tests/index',
),
array(
$this->helper->url('foo_tests_dotdot_index_controller'),
$this->helper->route('foo_tests_dotdot_index_controller'),
$rewrite_prefix . 'index',
),
/*
// helper URLs starting with ../ are prone to failure.
// Do not test them right now.
array(
$this->helper->url('../index'),
'../index',
),
array(
$this->helper->url('../../index'),
'../index',
),
array(
$this->helper->url('../tests/index'),
$rewrite_prefix . '../tests/index',
),
array(
$this->helper->url('../tests/../index'),
'../index',
),
array(
$this->helper->url('../../tests/index'),
'../tests/index',
),
*/
);
foreach ($redirects as $redirect)