summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-08-22 03:10:08 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-08-22 03:10:08 +0200
commit73c9d923e7cc77847cfcbff4b90ad4815699a4fa (patch)
tree76000712338c18a37a433b365cd32a72de2b1805 /tests
parentb0e7bc0df2eb4975223582089c7a928903e8cd14 (diff)
Renamed RoutingServiceProvider to Http\UrlGeneratorServiceProvider
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/HelpersTest.php4
-rw-r--r--tests/Unit/Http/UrlGeneratorServiceProviderTest.php (renamed from tests/Unit/Routing/RoutingServiceProviderTest.php)12
-rw-r--r--tests/Unit/Http/UrlGeneratorTest.php (renamed from tests/Unit/Routing/UrlGeneratorTest.php)4
3 files changed, 10 insertions, 10 deletions
diff --git a/tests/Unit/HelpersTest.php b/tests/Unit/HelpersTest.php
index 82030169..b59b11ee 100644
--- a/tests/Unit/HelpersTest.php
+++ b/tests/Unit/HelpersTest.php
@@ -8,7 +8,7 @@ use Engelsystem\Container\Container;
use Engelsystem\Http\Request;
use Engelsystem\Http\Response;
use Engelsystem\Renderer\Renderer;
-use Engelsystem\Routing\UrlGenerator;
+use Engelsystem\Http\UrlGenerator;
use PHPUnit\Framework\TestCase;
use PHPUnit_Framework_MockObject_MockObject as MockObject;
use Symfony\Component\HttpFoundation\Session\Session;
@@ -202,7 +202,7 @@ class HelpersTest extends TestCase
$urlGeneratorMock = $this->getMockBuilder(UrlGenerator::class)
->getMock();
- $this->getAppMock('routing.urlGenerator', $urlGeneratorMock);
+ $this->getAppMock('http.urlGenerator', $urlGeneratorMock);
$this->assertEquals($urlGeneratorMock, url());
$urlGeneratorMock->expects($this->once())
diff --git a/tests/Unit/Routing/RoutingServiceProviderTest.php b/tests/Unit/Http/UrlGeneratorServiceProviderTest.php
index dd9441eb..f3d5e018 100644
--- a/tests/Unit/Routing/RoutingServiceProviderTest.php
+++ b/tests/Unit/Http/UrlGeneratorServiceProviderTest.php
@@ -2,15 +2,15 @@
namespace Engelsystem\Test\Unit\Routing;
-use Engelsystem\Routing\RoutingServiceProvider;
-use Engelsystem\Routing\UrlGenerator;
+use Engelsystem\Http\UrlGenerator;
+use Engelsystem\Http\UrlGeneratorServiceProvider;
use Engelsystem\Test\Unit\ServiceProviderTest;
use PHPUnit_Framework_MockObject_MockObject;
-class RoutingServiceProviderTest extends ServiceProviderTest
+class UrlGeneratorServiceProviderTest extends ServiceProviderTest
{
/**
- * @covers \Engelsystem\Routing\RoutingServiceProvider::register()
+ * @covers \Engelsystem\Http\UrlGeneratorServiceProvider::register()
*/
public function testRegister()
{
@@ -21,9 +21,9 @@ class RoutingServiceProviderTest extends ServiceProviderTest
$app = $this->getApp();
$this->setExpects($app, 'make', [UrlGenerator::class], $urlGenerator);
- $this->setExpects($app, 'instance', ['routing.urlGenerator', $urlGenerator]);
+ $this->setExpects($app, 'instance', ['http.urlGenerator', $urlGenerator]);
- $serviceProvider = new RoutingServiceProvider($app);
+ $serviceProvider = new UrlGeneratorServiceProvider($app);
$serviceProvider->register();
}
}
diff --git a/tests/Unit/Routing/UrlGeneratorTest.php b/tests/Unit/Http/UrlGeneratorTest.php
index 6da59a4f..89ffa7dd 100644
--- a/tests/Unit/Routing/UrlGeneratorTest.php
+++ b/tests/Unit/Http/UrlGeneratorTest.php
@@ -5,7 +5,7 @@ namespace Engelsystem\Test\Unit\Routing;
use Engelsystem\Application;
use Engelsystem\Container\Container;
use Engelsystem\Http\Request;
-use Engelsystem\Routing\UrlGenerator;
+use Engelsystem\Http\UrlGenerator;
use PHPUnit\Framework\TestCase;
class UrlGeneratorTest extends TestCase
@@ -21,7 +21,7 @@ class UrlGeneratorTest extends TestCase
/**
* @dataProvider provideLinksTo
- * @covers \Engelsystem\Routing\UrlGenerator::to
+ * @covers \Engelsystem\Http\UrlGenerator::to
*
* @param string $path
* @param string $willReturn