mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:01:48 +02:00
[ticket/14440] Add tests
PHPBB3-14440
This commit is contained in:
@@ -135,6 +135,43 @@ class phpbb_path_helper_test extends phpbb_test_case
|
|||||||
'/phpbb3-fork/phpBB/app.php',
|
'/phpbb3-fork/phpBB/app.php',
|
||||||
'./../',
|
'./../',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
// No correction if the path is already prepend by the web root path
|
||||||
|
array(
|
||||||
|
'./../' . $this->phpbb_root_path . 'test.php',
|
||||||
|
'//',
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
'',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'./../' . $this->phpbb_root_path . 'test.php',
|
||||||
|
'//',
|
||||||
|
'foo/bar.php',
|
||||||
|
'bar.php',
|
||||||
|
'',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'./../../' . $this->phpbb_root_path . 'test.php',
|
||||||
|
'/foo/template',
|
||||||
|
'/phpbb3-fork/phpBB/app.php/foo/template',
|
||||||
|
'/phpbb3-fork/phpBB/app.php',
|
||||||
|
'',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'./../' . $this->phpbb_root_path . 'test.php',
|
||||||
|
'/foo/template',
|
||||||
|
'/phpbb3-fork/phpBB/foo/template',
|
||||||
|
'/phpbb3-fork/phpBB/app.php',
|
||||||
|
'',
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
'./../'.$this->phpbb_root_path . 'test.php',
|
||||||
|
'/',
|
||||||
|
'/phpbb3-fork/phpBB/app.php/',
|
||||||
|
'/phpbb3-fork/phpBB/app.php',
|
||||||
|
'',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user