aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/UtilsTest.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-01-23 20:05:41 +0100
committerArthurHoaro <arthur@hoa.ro>2020-01-26 11:34:14 +0100
commit9e4cc28e2957e1f7df713d52a03e350d728dc58e (patch)
treec659f36c3f483de0cfae30cada7441c9d3e48226 /tests/UtilsTest.php
parentdd51f653d07dba226fa1088f56ca258ef9b4ae87 (diff)
downloadShaarli-9e4cc28e2957e1f7df713d52a03e350d728dc58e.tar.gz
Shaarli-9e4cc28e2957e1f7df713d52a03e350d728dc58e.tar.zst
Shaarli-9e4cc28e2957e1f7df713d52a03e350d728dc58e.zip
Fix all existing links and redirection to ?do=login
Diffstat (limited to 'tests/UtilsTest.php')
-rw-r--r--tests/UtilsTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php
index 8225d95a..26d2a6b8 100644
--- a/tests/UtilsTest.php
+++ b/tests/UtilsTest.php
@@ -203,7 +203,7 @@ class UtilsTest extends PHPUnit\Framework\TestCase
203 public function testGenerateLocationLoop() 203 public function testGenerateLocationLoop()
204 { 204 {
205 $ref = 'http://localhost/?test'; 205 $ref = 'http://localhost/?test';
206 $this->assertEquals('?', generateLocation($ref, 'localhost', array('test'))); 206 $this->assertEquals('./?', generateLocation($ref, 'localhost', array('test')));
207 } 207 }
208 208
209 /** 209 /**
@@ -212,7 +212,7 @@ class UtilsTest extends PHPUnit\Framework\TestCase
212 public function testGenerateLocationOut() 212 public function testGenerateLocationOut()
213 { 213 {
214 $ref = 'http://somewebsite.com/?test'; 214 $ref = 'http://somewebsite.com/?test';
215 $this->assertEquals('?', generateLocation($ref, 'localhost')); 215 $this->assertEquals('./?', generateLocation($ref, 'localhost'));
216 } 216 }
217 217
218 218