aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller/helper_route_unclean_path_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-09-19 00:35:17 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-09-19 00:35:17 +0200
commita6d9b42e5fa3912b3a559c7e2068e74d4927438a (patch)
tree4a9b64ac198df8c2a5b9c853affbda0344b17686 /tests/controller/helper_route_unclean_path_test.php
parentd74f45aee0164d6189c3bb4182d67f345b1d9d6e (diff)
downloadforums-a6d9b42e5fa3912b3a559c7e2068e74d4927438a.tar
forums-a6d9b42e5fa3912b3a559c7e2068e74d4927438a.tar.gz
forums-a6d9b42e5fa3912b3a559c7e2068e74d4927438a.tar.bz2
forums-a6d9b42e5fa3912b3a559c7e2068e74d4927438a.tar.xz
forums-a6d9b42e5fa3912b3a559c7e2068e74d4927438a.zip
[ticket/13073] Rework route tests and add tests for more directory types
PHPBB3-13073
Diffstat (limited to 'tests/controller/helper_route_unclean_path_test.php')
-rw-r--r--tests/controller/helper_route_unclean_path_test.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/controller/helper_route_unclean_path_test.php b/tests/controller/helper_route_unclean_path_test.php
new file mode 100644
index 0000000000..697dda3c45
--- /dev/null
+++ b/tests/controller/helper_route_unclean_path_test.php
@@ -0,0 +1,33 @@
+<?php
+/**
+*
+* This file is part of the phpBB Forum Software package.
+*
+* @copyright (c) phpBB Limited <https://www.phpbb.com>
+* @license GNU General Public License, version 2 (GPL-2.0)
+*
+* For full copyright and license information, please see
+* the docs/CREDITS.txt file.
+*
+*/
+
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
+require_once dirname(__FILE__) . '/helper_route_test.php';
+
+class phpbb_controller_helper_route_adm_test extends phpbb_controller_helper_route_test
+{
+ protected function get_phpbb_root_path()
+ {
+ return './../';
+ }
+
+ protected function get_uri()
+ {
+ return '/adm/../bertie/index.php';
+ }
+
+ protected function get_script_name()
+ {
+ return 'index.php';
+ }
+}