2024-10-18 14:28:45 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests\Unit\Events;
|
|
|
|
|
2024-11-09 14:12:08 +01:00
|
|
|
use App\Events\StoreIconsInDatabaseSettingChanged;
|
2024-10-18 14:28:45 +02:00
|
|
|
use PHPUnit\Framework\Attributes\CoversClass;
|
|
|
|
use PHPUnit\Framework\Attributes\Test;
|
|
|
|
use Tests\TestCase;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* storeIconsInDatabaseSettingChangedTest test class
|
|
|
|
*/
|
2024-11-09 14:12:08 +01:00
|
|
|
#[CoversClass(StoreIconsInDatabaseSettingChanged::class)]
|
2024-10-18 14:28:45 +02:00
|
|
|
class storeIconsInDatabaseSettingChangedTest extends TestCase
|
|
|
|
{
|
|
|
|
#[Test]
|
|
|
|
public function test_event_constructor()
|
|
|
|
{
|
|
|
|
$newValue = true;
|
2024-11-09 14:12:08 +01:00
|
|
|
$event = new StoreIconsInDatabaseSettingChanged($newValue);
|
2024-10-18 14:28:45 +02:00
|
|
|
|
|
|
|
$this->assertSame($newValue, $event->newValue);
|
|
|
|
}
|
|
|
|
}
|