aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-03-15 15:21:15 +0100
committerJoas Schilling <nickvergessen@gmx.de>2013-03-15 15:21:15 +0100
commit3b0cdc53629c3a852762ae9b96b809cf4b1af2c4 (patch)
tree0884d8236fd20c3bac3a11bc662a8b74848cf689 /tests/controller
parent9157095cdabe629765ab0583f2850c2d4771c1d1 (diff)
downloadforums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.tar
forums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.tar.gz
forums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.tar.bz2
forums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.tar.xz
forums-3b0cdc53629c3a852762ae9b96b809cf4b1af2c4.zip
[ticket/11334] Allow parameters to be specified in the route
PHPBB3-11334
Diffstat (limited to 'tests/controller')
-rw-r--r--tests/controller/helper_url_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/controller/helper_url_test.php b/tests/controller/helper_url_test.php
index f27c03501d..195f48d8a9 100644
--- a/tests/controller/helper_url_test.php
+++ b/tests/controller/helper_url_test.php
@@ -15,7 +15,7 @@ class phpbb_controller_helper_url_test extends phpbb_test_case
public function helper_url_data()
{
return array(
- // Unsupported: array('foo/bar?t=1&amp;f=2', false, true, false, 'app.php?controller=foo/bar&amp;t=1&amp;f=2', 'parameters in url-argument'),
+ array('foo/bar?t=1&amp;f=2', false, true, false, 'app.php?t=1&amp;f=2&amp;controller=foo/bar', 'parameters in url-argument'),
array('foo/bar', 't=1&amp;f=2', true, false, 'app.php?controller=foo/bar&amp;t=1&amp;f=2', 'parameters in params-argument using amp'),
array('foo/bar', 't=1&f=2', false, false, 'app.php?controller=foo/bar&t=1&f=2', 'parameters in params-argument using &'),
array('foo/bar', array('t' => 1, 'f' => 2), true, false, 'app.php?controller=foo/bar&amp;t=1&amp;f=2', 'parameters in params-argument as array'),
@@ -24,12 +24,12 @@ class phpbb_controller_helper_url_test extends phpbb_test_case
array('foo/bar', 't=1&amp;f=2', true, 'custom-sid', 'app.php?controller=foo/bar&amp;t=1&amp;f=2&amp;sid=custom-sid', 'using session_id'),
// Testing anchors
- // Unsupported: array('foo/bar?t=1&amp;f=2#anchor', false, true, false, 'app.php?controller=foo/bar&amp;t=1&amp;f=2#anchor', 'anchor in url-argument'),
+ array('foo/bar?t=1&amp;f=2#anchor', false, true, false, 'app.php?t=1&amp;f=2&amp;controller=foo/bar#anchor', 'anchor in url-argument'),
array('foo/bar', 't=1&amp;f=2#anchor', true, false, 'app.php?controller=foo/bar&amp;t=1&amp;f=2#anchor', 'anchor in params-argument'),
array('foo/bar', array('t' => 1, 'f' => 2, '#' => 'anchor'), true, false, 'app.php?controller=foo/bar&amp;t=1&amp;f=2#anchor', 'anchor in params-argument (array)'),
// Anchors and custom sid
- // Unsupported: array('foo/bar?t=1&amp;f=2#anchor', false, true, 'custom-sid', 'app.php?controller=foo/bar&amp;t=1&amp;f=2&amp;sid=custom-sid#anchor', 'anchor in url-argument using session_id'),
+ array('foo/bar?t=1&amp;f=2#anchor', false, true, 'custom-sid', 'app.php?t=1&amp;f=2&amp;controller=foo/bar&amp;sid=custom-sid#anchor', 'anchor in url-argument using session_id'),
array('foo/bar', 't=1&amp;f=2#anchor', true, 'custom-sid', 'app.php?controller=foo/bar&amp;t=1&amp;f=2&amp;sid=custom-sid#anchor', 'anchor in params-argument using session_id'),
array('foo/bar', array('t' => 1, 'f' => 2, '#' => 'anchor'), true, 'custom-sid', 'app.php?controller=foo/bar&amp;t=1&amp;f=2&amp;sid=custom-sid#anchor', 'anchor in params-argument (array) using session_id'),