diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-10-08 19:30:37 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-10-31 13:43:23 +0100 |
commit | d15946df2dfb0ae2f0ca9371e5c8071df91ab45a (patch) | |
tree | 49601aafd74da5a781920543ed92bbd180fe5e89 /tests/Unit/Helpers/AuthenticatorServiceProviderTest.php | |
parent | 8e62c4c52c27f9432820915deeb699c3d1f58ce7 (diff) |
Changed `src/` code and templates to use the new user model
Diffstat (limited to 'tests/Unit/Helpers/AuthenticatorServiceProviderTest.php')
-rw-r--r-- | tests/Unit/Helpers/AuthenticatorServiceProviderTest.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/Unit/Helpers/AuthenticatorServiceProviderTest.php b/tests/Unit/Helpers/AuthenticatorServiceProviderTest.php new file mode 100644 index 00000000..f7819da2 --- /dev/null +++ b/tests/Unit/Helpers/AuthenticatorServiceProviderTest.php @@ -0,0 +1,25 @@ +<?php + +namespace Engelsystem\Test\Unit\Helpers; + +use Engelsystem\Application; +use Engelsystem\Helpers\Authenticator; +use Engelsystem\Helpers\AuthenticatorServiceProvider; +use Engelsystem\Test\Unit\ServiceProviderTest; + +class AuthenticatorServiceProviderTest extends ServiceProviderTest +{ + /** + * @covers \Engelsystem\Helpers\AuthenticatorServiceProvider::register() + */ + public function testRegister() + { + $app = new Application(); + + $serviceProvider = new AuthenticatorServiceProvider($app); + $serviceProvider->register(); + + $this->assertInstanceOf(Authenticator::class, $app->get(Authenticator::class)); + $this->assertInstanceOf(Authenticator::class, $app->get('authenticator')); + } +} |