2FAuth/tests/Unit/Events/storeIconsInDatabaseSettingChangedTest.php
2024-11-09 14:12:08 +01:00

25 lines
602 B
PHP

<?php
namespace Tests\Unit\Events;
use App\Events\StoreIconsInDatabaseSettingChanged;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
/**
* storeIconsInDatabaseSettingChangedTest test class
*/
#[CoversClass(StoreIconsInDatabaseSettingChanged::class)]
class storeIconsInDatabaseSettingChangedTest extends TestCase
{
#[Test]
public function test_event_constructor()
{
$newValue = true;
$event = new StoreIconsInDatabaseSettingChanged($newValue);
$this->assertSame($newValue, $event->newValue);
}
}