Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8222118
StatusTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
713 B
Referenced Files
None
Subscribers
None
StatusTest.php
View Options
<?php
namespace
Tests\Feature\Console\User
;
use
Tests\TestCase
;
class
StatusTest
extends
TestCase
{
/**
* Test command runs
*/
public
function
testHandle
():
void
{
$code
=
\Artisan
::
call
(
"user:status unknown"
);
$output
=
trim
(
\Artisan
::
output
());
$this
->
assertSame
(
1
,
$code
);
$this
->
assertSame
(
"User not found.
\n
Try ./artisan scalpel:user:read --attr=email --attr=tenant_id unknown"
,
$output
);
$code
=
\Artisan
::
call
(
"user:status john@kolab.org"
);
$output
=
trim
(
\Artisan
::
output
());
$this
->
assertSame
(
0
,
$code
);
$this
->
assertSame
(
"Status: active,ldapReady,imapReady"
,
$output
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 9, 7:45 PM (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1056475
Default Alt Text
StatusTest.php (713 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment