|
|
@ -14,6 +14,7 @@ class UrlGeneratorTest extends TestCase
|
|
|
|
public function provideLinksTo()
|
|
|
|
public function provideLinksTo()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
return [
|
|
|
|
|
|
|
|
['/', '/', 'http://foo.bar/', [], 'http://foo.bar/'],
|
|
|
|
['/foo/path', '/foo/path', 'http://foo.bar/foo/path', [], 'http://foo.bar/foo/path'],
|
|
|
|
['/foo/path', '/foo/path', 'http://foo.bar/foo/path', [], 'http://foo.bar/foo/path'],
|
|
|
|
['foo', '/foo', 'https://foo.bar/foo', [], 'https://foo.bar/foo'],
|
|
|
|
['foo', '/foo', 'https://foo.bar/foo', [], 'https://foo.bar/foo'],
|
|
|
|
['foo', '/foo', 'http://f.b/foo', ['test' => 'abc', 'bla' => 'foo'], 'http://f.b/foo?test=abc&bla=foo'],
|
|
|
|
['foo', '/foo', 'http://f.b/foo', ['test' => 'abc', 'bla' => 'foo'], 'http://f.b/foo?test=abc&bla=foo'],
|
|
|
|