From f46e921b710b02d5a1f17f0dd076a5bf085ae735 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 12 Aug 2018 13:41:33 +0200 Subject: Use domain for links to '/' to fix assets URLs on subdirectories --- tests/Unit/Routing/LegacyUrlGeneratorTest.php | 4 ++-- tests/Unit/Routing/UrlGeneratorTest.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/Unit') diff --git a/tests/Unit/Routing/LegacyUrlGeneratorTest.php b/tests/Unit/Routing/LegacyUrlGeneratorTest.php index 55b3d721..3d42afbd 100644 --- a/tests/Unit/Routing/LegacyUrlGeneratorTest.php +++ b/tests/Unit/Routing/LegacyUrlGeneratorTest.php @@ -14,9 +14,9 @@ class LegacyUrlGeneratorTest extends TestCase public function provideLinksTo() { return [ - ['/', 'http://foo.bar/index.php', [], 'http://foo.bar/index.php'], + ['/', 'http://foo.bar/index.php', [], 'http://foo.bar/'], ['/foo-path', 'http://foo.bar/index.php/index.php', [], 'http://foo.bar/index.php?p=foo_path'], - ['/foo', 'http://foo.bar/index.php/index.php', [], 'http://foo.bar/index.php?p=foo'], + ['/foo', 'http://foo.bar/index.php/index.php', [], 'http://foo.bar/index.php?p=foo'], ['foo', 'http://foo.bar/index.php', ['test' => 'abc'], 'http://foo.bar/index.php?p=foo&test=abc'], ]; } diff --git a/tests/Unit/Routing/UrlGeneratorTest.php b/tests/Unit/Routing/UrlGeneratorTest.php index 2d2efd31..e128bfe7 100644 --- a/tests/Unit/Routing/UrlGeneratorTest.php +++ b/tests/Unit/Routing/UrlGeneratorTest.php @@ -14,6 +14,7 @@ class UrlGeneratorTest extends TestCase public function provideLinksTo() { return [ + ['/', '/', 'http://foo.bar/', [], 'http://foo.bar/'], ['/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', 'http://f.b/foo', ['test' => 'abc', 'bla' => 'foo'], 'http://f.b/foo?test=abc&bla=foo'], -- cgit v1.2.3-54-g00ecf