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

25 lines
424 B
PHP
Raw Normal View History

2021-11-30 17:39:33 +01:00
<?php
namespace Tests\Unit\Events;
2021-12-02 13:15:53 +01:00
use App\Models\Group;
2021-11-30 17:39:33 +01:00
use App\Events\GroupDeleting;
use Tests\TestCase;
/**
* @covers \App\Events\GroupDeleting
*/
class GroupDeletingTest extends TestCase
{
/**
* @test
*/
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);
}
}