mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12090] Fix helper usage in functional controller tests
PHPBB3-12090
This commit is contained in:
parent
ecf1e94726
commit
6491477809
1 changed files with 3 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue