Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120824309
EventLogTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
581 B
Referenced Files
None
Subscribers
None
EventLogTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline