diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2022-05-18 06:40:51 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-05-18 06:40:51 +0000 |
| commit | f452fa8039361590ea31ac1c206d777fdcf147af (patch) | |
| tree | 94f1c9916009c1e1fc3c03cd01a5b60cf5bbe955 /tests | |
| parent | 2b4aea3189f0906e078da36c0fd3349126ced997 (diff) | |
fix behaviour of `url_for` with fragments, fixes #985
Closes #985
Merge request studip/studip!630
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/lib/classes/StudipControllerTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/lib/classes/StudipControllerTest.php b/tests/unit/lib/classes/StudipControllerTest.php index fae7628..3675f58 100644 --- a/tests/unit/lib/classes/StudipControllerTest.php +++ b/tests/unit/lib/classes/StudipControllerTest.php @@ -185,6 +185,10 @@ final class StudipControllerTest extends Codeception\Test\Unit '2-actions' => ['dispatch.php/foo/bar', 'foo', 'bar'], '2-actions-and-parameter' => ['dispatch.php/foo/bar?bar=42', 'foo', 'bar', ['bar' => 42]], '2-actions-and-parameters' => ['dispatch.php/foo/bar?bar=42&baz=23', 'foo', 'bar', ['bar' => 42, 'baz' => 23]], + + 'fragment' => ['dispatch.php/foo/bar/42/23#jump', 'foo/bar/42/23#jump'], + 'fragment-and-parameters' => ['dispatch.php/foo/bar/42/23#jump', 'foo/bar#jump', 42, 23], + 'url-encoding-parameters' => ['dispatch.php/foo/bar/%3Fabc/%2F', 'foo/bar', '?abc', '/'], ]; } |
