You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
742 B
PHP
26 lines
742 B
PHP
<?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'));
|
|
}
|
|
}
|