Page MenuHomePhorge

EventLogTest.php
No OneTemporary

Authored By
Unknown
Size
581 B
Referenced Files
None
Subscribers
None

EventLogTest.php

<?php
namespace Tests\Unit;
use App\EventLog;
use Tests\TestCase;
class EventLogTest extends TestCase
{
/**
* Test type mutator
*/
public function testSetTypeAttribute(): void
{
$event = new EventLog();
$this->expectException(\Exception::class);
$event->type = -1;
$this->expectException(\Exception::class);
$event->type = 256;
$this->expectException(\Exception::class);
$event->type = 'abc'; // @phpstan-ignore-line
$event->type = 2;
$this->assertSame(20, $event->type);
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Apr 24, 10:20 AM (2 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18828351
Default Alt Text
EventLogTest.php (581 B)

Event Timeline