2FAuth/tests/Unit/Events/GroupDeletingTest.php
2022-11-25 15:20:36 +01:00

25 lines
424 B
PHP

<?php
namespace Tests\Unit\Events;
use App\Events\GroupDeleting;
use App\Models\Group;
use Tests\TestCase;
/**
* @covers \App\Events\GroupDeleting
*/
class GroupDeletingTest extends TestCase
{
/**
* @test
*/
public function test_event_constructor()
{
$group = Group::factory()->make();
$event = new GroupDeleting($group);
$this->assertSame($group, $event->group);
}
}