mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-26 10:15:40 +01:00
26 lines
530 B
PHP
26 lines
530 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Unit\Events;
|
||
|
|
||
|
use App\Events\VisitedByProxyUser;
|
||
|
use App\Models\User;
|
||
|
use PHPUnit\Framework\Attributes\CoversClass;
|
||
|
use PHPUnit\Framework\Attributes\Test;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
/**
|
||
|
* VisitedByProxyUserTest test class
|
||
|
*/
|
||
|
#[CoversClass(VisitedByProxyUser::class)]
|
||
|
class VisitedByProxyUserTest extends TestCase
|
||
|
{
|
||
|
#[Test]
|
||
|
public function test_event_constructor()
|
||
|
{
|
||
|
$user = new User();
|
||
|
$event = new VisitedByProxyUser($user);
|
||
|
|
||
|
$this->assertSame($user, $event->user);
|
||
|
}
|
||
|
}
|