mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-03-13 14:38:37 +01:00
25 lines
420 B
PHP
25 lines
420 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Unit\Events;
|
||
|
|
||
|
use App\Events\GroupDeleted;
|
||
|
use App\Models\Group;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
/**
|
||
|
* @covers \App\Events\GroupDeleted
|
||
|
*/
|
||
|
class GroupDeletedTest extends TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @test
|
||
|
*/
|
||
|
public function test_event_constructor()
|
||
|
{
|
||
|
$group = Group::factory()->make();
|
||
|
$event = new GroupDeleted($group);
|
||
|
|
||
|
$this->assertSame($group, $event->group);
|
||
|
}
|
||
|
}
|