Refactor authentication system (#2602)
Make auth configuration available via UI, remove FOSUserBundle and SAML-Bundle dependency
This commit is contained in:
31
tests/Event/UserCreateEventTest.php
Normal file
31
tests/Event/UserCreateEventTest.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Tests\Event;
|
||||
|
||||
use App\Entity\User;
|
||||
use App\Event\UserCreateEvent;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \App\Event\AbstractUserEvent
|
||||
* @covers \App\Event\UserCreateEvent
|
||||
*/
|
||||
class UserCreateEventTest extends TestCase
|
||||
{
|
||||
public function testGetter()
|
||||
{
|
||||
$user = new User();
|
||||
$user->setAlias('foo');
|
||||
|
||||
$sut = new UserCreateEvent($user);
|
||||
|
||||
$this->assertEquals($user, $sut->getUser());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user