diff options
author | Arthur <arthur@hoa.ro> | 2015-11-07 16:51:50 +0100 |
---|---|---|
committer | Arthur <arthur@hoa.ro> | 2015-11-07 16:51:50 +0100 |
commit | 70df947af60afb05529024bb2d3825eaf6cc7950 (patch) | |
tree | 0cade3729406e61435e63b7b27e4957f8a2abd47 /tests | |
parent | 38bedfbbcdd2a40e9f04f5753e0fd6f4fd513c21 (diff) | |
parent | d01c234235411bafb97661d335fcb6ea1e67ffbc (diff) | |
download | Shaarli-70df947af60afb05529024bb2d3825eaf6cc7950.tar.gz Shaarli-70df947af60afb05529024bb2d3825eaf6cc7950.tar.zst Shaarli-70df947af60afb05529024bb2d3825eaf6cc7950.zip |
Merge pull request #368 from ArthurHoaro/returnurl-again
Fixes #356 - adding a link should return added link's hash
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/UtilsTest.php | 2 |
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 | /** |