summaryrefslogtreecommitdiff
path: root/tests/Unit/Routing/UrlGeneratorTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-09-20 01:09:11 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2017-09-20 01:10:14 +0200
commit86c0713baa2f616bf1dff6d9dbe0ea68b1c00e91 (patch)
tree9f1c0a43c6c02b333059e2e5b30334f7465ab5d6 /tests/Unit/Routing/UrlGeneratorTest.php
parentc8d32d23e195d53d6d10fdac5003718b10ffbeaa (diff)
Added helpers unit test
Diffstat (limited to 'tests/Unit/Routing/UrlGeneratorTest.php')
-rw-r--r--tests/Unit/Routing/UrlGeneratorTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Unit/Routing/UrlGeneratorTest.php b/tests/Unit/Routing/UrlGeneratorTest.php
index 5b53a04e..fc23520a 100644
--- a/tests/Unit/Routing/UrlGeneratorTest.php
+++ b/tests/Unit/Routing/UrlGeneratorTest.php
@@ -32,6 +32,7 @@ class UrlGeneratorTest extends TestCase
public function testTo($urlToPath, $path, $willReturn, $arguments, $expectedUrl)
{
$app = new Container();
+ $urlGenerator = new UrlGenerator();
Application::setInstance($app);
$request = $this->getMockBuilder(Request::class)
@@ -44,7 +45,7 @@ class UrlGeneratorTest extends TestCase
$app->instance('request', $request);
- $url = UrlGenerator::to($urlToPath, $arguments);
+ $url = $urlGenerator->to($urlToPath, $arguments);
$this->assertEquals($expectedUrl, $url);
}
}