summaryrefslogtreecommitdiff
path: root/tests/Unit/HelpersTest.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-09-07 20:50:31 +0200
committermsquare <msquare@notrademark.de>2018-09-07 20:50:31 +0200
commit2d6bca1357faff28bc1f86a56b432cc463ff7574 (patch)
treece18461d2e170ac28dd365342a1f125a8a31aa3a /tests/Unit/HelpersTest.php
parentb320fc779063ee80b8f0ba505cb323287ccccbf5 (diff)
parentce6d0fd13b54ac79a955b85d50860736a520d333 (diff)
Merge branch 'MyIgel-routing'
Diffstat (limited to 'tests/Unit/HelpersTest.php')
-rw-r--r--tests/Unit/HelpersTest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/Unit/HelpersTest.php b/tests/Unit/HelpersTest.php
index cd001df9..fb9e6f00 100644
--- a/tests/Unit/HelpersTest.php
+++ b/tests/Unit/HelpersTest.php
@@ -8,7 +8,8 @@ use Engelsystem\Container\Container;
use Engelsystem\Http\Request;
use Engelsystem\Http\Response;
use Engelsystem\Renderer\Renderer;
-use Engelsystem\Routing\UrlGeneratorInterface;
+use Engelsystem\Http\UrlGenerator;
+use Engelsystem\Http\UrlGeneratorInterface;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use Symfony\Component\HttpFoundation\Session\Session;
@@ -201,11 +202,11 @@ class HelpersTest extends TestCase
{
$urlGeneratorMock = $this->getMockForAbstractClass(UrlGeneratorInterface::class);
- $this->getAppMock('routing.urlGenerator', $urlGeneratorMock);
+ $this->getAppMock('http.urlGenerator', $urlGeneratorMock);
$this->assertEquals($urlGeneratorMock, url());
$urlGeneratorMock->expects($this->once())
- ->method('linkTo')
+ ->method('to')
->with('foo/bar', ['param' => 'value'])
->willReturn('http://lorem.ipsum/foo/bar?param=value');