diff options
Diffstat (limited to 'tests/Unit/Http/RedirectServiceProviderTest.php')
-rw-r--r-- | tests/Unit/Http/RedirectServiceProviderTest.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/Unit/Http/RedirectServiceProviderTest.php b/tests/Unit/Http/RedirectServiceProviderTest.php new file mode 100644 index 00000000..9c2a07fc --- /dev/null +++ b/tests/Unit/Http/RedirectServiceProviderTest.php @@ -0,0 +1,23 @@ +<?php + +namespace Engelsystem\Test\Unit\Http; + +use Engelsystem\Application; +use Engelsystem\Http\RedirectServiceProvider; +use Engelsystem\Test\Unit\ServiceProviderTest; + +class RedirectServiceProviderTest extends ServiceProviderTest +{ + /** + * @covers \Engelsystem\Http\RedirectServiceProvider::register + */ + public function testRegister() + { + $app = new Application(); + + $serviceProvider = new RedirectServiceProvider($app); + $serviceProvider->register(); + + $this->assertTrue($app->has('redirect')); + } +} |