2FAuth/tests/Unit/Events/GroupDeletedTest.php

26 lines
519 B
PHP
Raw Normal View History

<?php
namespace Tests\Unit\Events;
use App\Events\GroupDeleted;
use App\Models\Group;
2023-08-01 11:28:27 +02:00
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
/**
2023-08-01 11:28:27 +02:00
* GroupDeletedTest test class
*/
2023-08-01 11:28:27 +02:00
#[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);
}
}