From 73c9d923e7cc77847cfcbff4b90ad4815699a4fa Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 22 Aug 2018 03:10:08 +0200 Subject: Renamed RoutingServiceProvider to Http\UrlGeneratorServiceProvider --- .../Unit/Http/UrlGeneratorServiceProviderTest.php | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/Unit/Http/UrlGeneratorServiceProviderTest.php (limited to 'tests/Unit/Http/UrlGeneratorServiceProviderTest.php') diff --git a/tests/Unit/Http/UrlGeneratorServiceProviderTest.php b/tests/Unit/Http/UrlGeneratorServiceProviderTest.php new file mode 100644 index 00000000..f3d5e018 --- /dev/null +++ b/tests/Unit/Http/UrlGeneratorServiceProviderTest.php @@ -0,0 +1,29 @@ +getMockBuilder(UrlGenerator::class) + ->getMock(); + + $app = $this->getApp(); + + $this->setExpects($app, 'make', [UrlGenerator::class], $urlGenerator); + $this->setExpects($app, 'instance', ['http.urlGenerator', $urlGenerator]); + + $serviceProvider = new UrlGeneratorServiceProvider($app); + $serviceProvider->register(); + } +} -- cgit v1.2.3-54-g00ecf