mirror of
https://github.com/kevinpapst/kimai2.git
synced 2024-10-31 06:08:11 +00:00
32 lines
653 B
PHP
32 lines
653 B
PHP
<?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(): void
|
|
{
|
|
$user = new User();
|
|
$user->setAlias('foo');
|
|
|
|
$sut = new UserCreateEvent($user);
|
|
|
|
$this->assertEquals($user, $sut->getUser());
|
|
}
|
|
}
|