Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7058458
SignupInvitationTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
993 B
Referenced Files
None
Subscribers
None
SignupInvitationTest.php
View Options
<?php
namespace
Tests\Unit
;
use
App\SignupInvitation
;
use
Tests\TestCase
;
class
SignupInvitationTest
extends
TestCase
{
/**
* Test is*() methods
*
* @return void
*/
public
function
testStatus
()
{
$invitation
=
new
SignupInvitation
();
$statuses
=
[
SignupInvitation
::
STATUS_NEW
,
SignupInvitation
::
STATUS_SENT
,
SignupInvitation
::
STATUS_FAILED
,
SignupInvitation
::
STATUS_COMPLETED
,
];
foreach
(
$statuses
as
$status
)
{
$invitation
->
status
=
$status
;
$this
->
assertSame
(
$status
===
SignupInvitation
::
STATUS_NEW
,
$invitation
->
isNew
());
$this
->
assertSame
(
$status
===
SignupInvitation
::
STATUS_SENT
,
$invitation
->
isSent
());
$this
->
assertSame
(
$status
===
SignupInvitation
::
STATUS_FAILED
,
$invitation
->
isFailed
());
$this
->
assertSame
(
$status
===
SignupInvitation
::
STATUS_COMPLETED
,
$invitation
->
isCompleted
());
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jun 12, 4:56 AM (1 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
903362
Default Alt Text
SignupInvitationTest.php (993 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment