summaryrefslogtreecommitdiff
path: root/tests/Unit
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-08-06 12:50:34 +0200
committermsquare <msquare@notrademark.de>2018-08-06 12:50:34 +0200
commit86b29370786de35cc40e3424e09c3cf48551ee28 (patch)
tree7d605f5b24c864d91c50bfe9df333f95d272f7b5 /tests/Unit
parent5a83d4fb8b7d2fc561a2b841ab6981df02837b2d (diff)
added comments and renamed short method to url generators
Diffstat (limited to 'tests/Unit')
-rw-r--r--tests/Unit/HelpersTest.php2
-rw-r--r--tests/Unit/Routing/LegacyUrlGeneratorTest.php2
-rw-r--r--tests/Unit/Routing/UrlGeneratorTest.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/Unit/HelpersTest.php b/tests/Unit/HelpersTest.php
index fcb7231d..01ff99b1 100644
--- a/tests/Unit/HelpersTest.php
+++ b/tests/Unit/HelpersTest.php
@@ -177,7 +177,7 @@ class HelpersTest extends TestCase
$this->assertEquals($urlGeneratorMock, url());
$urlGeneratorMock->expects($this->once())
- ->method('to')
+ ->method('link_to')
->with('foo/bar', ['param' => 'value'])
->willReturn('http://lorem.ipsum/foo/bar?param=value');
diff --git a/tests/Unit/Routing/LegacyUrlGeneratorTest.php b/tests/Unit/Routing/LegacyUrlGeneratorTest.php
index 63e1a3eb..7c28eaed 100644
--- a/tests/Unit/Routing/LegacyUrlGeneratorTest.php
+++ b/tests/Unit/Routing/LegacyUrlGeneratorTest.php
@@ -48,7 +48,7 @@ class LegacyUrlGeneratorTest extends TestCase
$urlGenerator = new LegacyUrlGenerator();
$this->assertInstanceOf(UrlGeneratorInterface::class, $urlGenerator);
- $url = $urlGenerator->to($urlToPath, $arguments);
+ $url = $urlGenerator->link_to($urlToPath, $arguments);
$this->assertEquals($expectedUrl, $url);
}
}
diff --git a/tests/Unit/Routing/UrlGeneratorTest.php b/tests/Unit/Routing/UrlGeneratorTest.php
index 8fe0d65f..34c2f610 100644
--- a/tests/Unit/Routing/UrlGeneratorTest.php
+++ b/tests/Unit/Routing/UrlGeneratorTest.php
@@ -48,7 +48,7 @@ class UrlGeneratorTest extends TestCase
$urlGenerator = new UrlGenerator();
$this->assertInstanceOf(UrlGeneratorInterface::class, $urlGenerator);
- $url = $urlGenerator->to($urlToPath, $arguments);
+ $url = $urlGenerator->link_to($urlToPath, $arguments);
$this->assertEquals($expectedUrl, $url);
}
}