2FAuth/tests/Unit/Events/GroupDeletedTest.php
2023-08-01 11:28:27 +02:00

27 lines
497 B
PHP

<?php
namespace Tests\Unit\Events;
use App\Events\GroupDeleted;
use App\Models\Group;
use PHPUnit\Framework\Attributes\CoversClass;
use Tests\TestCase;
/**
* GroupDeletedTest test class
*/
#[CoversClass(GroupDeleted::class)]
class GroupDeletedTest extends TestCase
{
/**
* @test
*/
public function test_event_constructor()
{
$group = Group::factory()->make();
$event = new GroupDeleted($group);
$this->assertSame($group, $event->group);
}
}