From d01c234235411bafb97661d335fcb6ea1e67ffbc Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 4 Nov 2015 19:53:59 +0100 Subject: Fixes #356 * adding a link should return added link's hash * allow redirection relative urls in generateLocation --- tests/UtilsTest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/UtilsTest.php') diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index 7f218ad5..311d4bfb 100755 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php @@ -118,6 +118,8 @@ class UtilsTest extends PHPUnit_Framework_TestCase $this->assertEquals($ref, generateLocation($ref, 'localhost')); $ref = 'http://localhost:8080/?test'; $this->assertEquals($ref, generateLocation($ref, 'localhost:8080')); + $ref = '?localreferer#hash'; + $this->assertEquals($ref, generateLocation($ref, 'localhost:8080')); } /** -- cgit v1.2.3