aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-11-04 19:53:59 +0100
committerArthurHoaro <arthur@hoa.ro>2015-11-04 19:53:59 +0100
commitd01c234235411bafb97661d335fcb6ea1e67ffbc (patch)
tree0cade3729406e61435e63b7b27e4957f8a2abd47 /tests
parent38bedfbbcdd2a40e9f04f5753e0fd6f4fd513c21 (diff)
downloadShaarli-d01c234235411bafb97661d335fcb6ea1e67ffbc.tar.gz
Shaarli-d01c234235411bafb97661d335fcb6ea1e67ffbc.tar.zst
Shaarli-d01c234235411bafb97661d335fcb6ea1e67ffbc.zip
Fixes #356
* adding a link should return added link's hash * allow redirection relative urls in generateLocation
Diffstat (limited to 'tests')
-rwxr-xr-xtests/UtilsTest.php2
1 files changed, 2 insertions, 0 deletions
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
118 $this->assertEquals($ref, generateLocation($ref, 'localhost')); 118 $this->assertEquals($ref, generateLocation($ref, 'localhost'));
119 $ref = 'http://localhost:8080/?test'; 119 $ref = 'http://localhost:8080/?test';
120 $this->assertEquals($ref, generateLocation($ref, 'localhost:8080')); 120 $this->assertEquals($ref, generateLocation($ref, 'localhost:8080'));
121 $ref = '?localreferer#hash';
122 $this->assertEquals($ref, generateLocation($ref, 'localhost:8080'));
121 } 123 }
122 124
123 /** 125 /**