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

26 lines
524 B
PHP
Raw Normal View History

2021-11-30 17:39:33 +01:00
<?php
namespace Tests\Unit\Events;
use App\Events\GroupDeleting;
2022-11-22 15:15:52 +01:00
use App\Models\Group;
2023-08-01 11:28:27 +02:00
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Test;
2021-11-30 17:39:33 +01:00
use Tests\TestCase;
/**
2023-08-01 11:28:27 +02:00
* GroupDeletingTest test class
2021-11-30 17:39:33 +01:00
*/
2023-08-01 11:28:27 +02:00
#[CoversClass(GroupDeleting::class)]
2021-11-30 17:39:33 +01:00
class GroupDeletingTest extends TestCase
{
#[Test]
2021-11-30 17:39:33 +01:00
public function test_event_constructor()
{
2021-12-02 13:15:53 +01:00
$group = Group::factory()->make();
2021-11-30 17:39:33 +01:00
$event = new GroupDeleting($group);
$this->assertSame($group, $event->group);
}
2022-11-22 15:15:52 +01:00
}