Commit 689fc137 by Carsten Brandt

added some tests for Url helper

parent fdb1672e
......@@ -130,6 +130,11 @@ class UrlTest extends TestCase
$this->assertEquals('https://example.com/test/me1', Url::to('test/me1', 'https'));
$this->assertEquals('https://example.com/test/test/me1', Url::to('@web4/test/me1', 'https'));
$this->assertEquals('/test/me1', Url::to('/test/me1'));
$this->assertEquals('http://example.com/test/me1', Url::to('/test/me1', true));
$this->assertEquals('https://example.com/test/me1', Url::to('/test/me1', 'https'));
$this->assertEquals('./test/me1', Url::to('./test/me1'));
$this->assertEquals('http://test.example.com/test/me1', Url::to('@web1'));
$this->assertEquals('http://test.example.com/test/me1', Url::to('@web1', true));
$this->assertEquals('https://test.example.com/test/me1', Url::to('@web1', 'https'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment