From 9496e3571168feff780f6efb17ddc00c670e2dee Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 6 Aug 2018 12:57:48 +0200 Subject: added comments and renamed short method to url generators --- tests/Unit/HelpersTest.php | 2 +- tests/Unit/Routing/LegacyUrlGeneratorTest.php | 2 +- tests/Unit/Routing/UrlGeneratorTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/Unit') diff --git a/tests/Unit/HelpersTest.php b/tests/Unit/HelpersTest.php index 01ff99b1..9514ad8c 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('link_to') + ->method('linkTo') ->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 7c28eaed..9576a260 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->link_to($urlToPath, $arguments); + $url = $urlGenerator->linkTo($urlToPath, $arguments); $this->assertEquals($expectedUrl, $url); } } diff --git a/tests/Unit/Routing/UrlGeneratorTest.php b/tests/Unit/Routing/UrlGeneratorTest.php index 34c2f610..ddb6c975 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->link_to($urlToPath, $arguments); + $url = $urlGenerator->linkTo($urlToPath, $arguments); $this->assertEquals($expectedUrl, $url); } } -- cgit v1.2.3-54-g00ecf