diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-06-21 08:39:09 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-06-21 08:39:09 +0000 |
| commit | b333f3fa1ea4d661db10e88325152eb2ef5437f3 (patch) | |
| tree | ac8d0efcc6a6501c842e36ef6041c69adef5edde /tests | |
| parent | cbc5bec63afbabc79c15f62d3a4cdeb079283984 (diff) | |
fix path handling in `action_link()`, fixes #1188
Closes #1188
Merge request studip/studip!704
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/lib/classes/StudipControllerTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/lib/classes/StudipControllerTest.php b/tests/unit/lib/classes/StudipControllerTest.php index a7009fe..5321166 100644 --- a/tests/unit/lib/classes/StudipControllerTest.php +++ b/tests/unit/lib/classes/StudipControllerTest.php @@ -76,6 +76,12 @@ final class StudipControllerTest extends Codeception\Test\Unit $expected, $this->getRelativeURL($url) ); + + $link = $this->getController()->action_link(...$args); + $this->assertEquals( + htmlspecialchars($expected), + $this->getRelativeURL($link) + ); } /** |
