aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller/helper_route_other_app.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-09-28 23:32:56 +0200
committerTristan Darricau <github@nicofuma.fr>2014-09-28 23:32:56 +0200
commita159899d028d56f09efd79dd3e3abf5b3a7abc7b (patch)
treec6709ad428881e8ebad451ce1a12376573a63ba5 /tests/controller/helper_route_other_app.php
parent71ac6ab2b87ec1d606d5669b930ac4c7164e9b11 (diff)
downloadforums-a159899d028d56f09efd79dd3e3abf5b3a7abc7b.tar
forums-a159899d028d56f09efd79dd3e3abf5b3a7abc7b.tar.gz
forums-a159899d028d56f09efd79dd3e3abf5b3a7abc7b.tar.bz2
forums-a159899d028d56f09efd79dd3e3abf5b3a7abc7b.tar.xz
forums-a159899d028d56f09efd79dd3e3abf5b3a7abc7b.zip
[ticket/13113] Updates the base url only when the front-end isn't app.php
PHPBB3-13113
Diffstat (limited to 'tests/controller/helper_route_other_app.php')
-rw-r--r--tests/controller/helper_route_other_app.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/controller/helper_route_other_app.php b/tests/controller/helper_route_other_app.php
new file mode 100644
index 0000000000..e5513a5180
--- /dev/null
+++ b/tests/controller/helper_route_other_app.php
@@ -0,0 +1,37 @@
+<?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__) . '/common_helper_route.php';
+
+class phpbb_controller_helper_route_other_app_test extends phpbb_controller_common_helper_route
+{
+ protected function get_phpbb_root_path()
+ {
+ return './../';
+ }
+
+ protected function get_uri()
+ {
+ return '/foo/app.php';
+ }
+
+ protected function get_script_name()
+ {
+ return 'app.php';
+ }
+
+ protected function path_to_app()
+ {
+ return 'foo/';
+ }
+}