diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-27 19:11:37 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-12-08 02:12:56 +0100 |
commit | 89742ecd5542c740f3625af76c843a7471dbe98a (patch) | |
tree | 71c0c78ceb6a3a24b63c51c94a655cf5b33dc044 /tests/Unit/Http/RedirectServiceProviderTest.php | |
parent | be39c63f46562eea173747d80cd91ac81e0b8e09 (diff) |
Response: Added with and withInput methods and back/redirect functions
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')); + } +} |