* adding a link should return added link's hash
* allow redirection relative urls in generateLocation
This commit is contained in:
ArthurHoaro 2015-11-04 19:53:59 +01:00
parent 38bedfbbcd
commit d01c234235
3 changed files with 15 additions and 8 deletions

View file

@ -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'));
}
/**