Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120825878
HealthTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
975 B
Referenced Files
None
Subscribers
None
HealthTest.php
View Options
<?php
namespace
Tests\Feature\Console\Status
;
use
App\Support\Facades\DAV
;
use
App\Support\Facades\IMAP
;
use
App\Support\Facades\LDAP
;
use
App\Support\Facades\Roundcube
;
use
App\Support\Facades\Storage
;
use
Tests\TestCase
;
class
HealthTest
extends
TestCase
{
/**
* Test the command
*
* @group meet
* @group mollie
*/
public
function
testHandle
():
void
{
\config
([
'app.with_ldap'
=>
true
]);
\config
([
'app.with_imap'
=>
true
]);
DAV
::
shouldReceive
(
'healthcheck'
)->
once
()->
andReturn
(
true
);
IMAP
::
shouldReceive
(
'healthcheck'
)->
once
()->
andReturn
(
true
);
LDAP
::
shouldReceive
(
'healthcheck'
)->
once
()->
andReturn
(
true
);
Roundcube
::
shouldReceive
(
'healthcheck'
)->
once
()->
andReturn
(
true
);
Storage
::
shouldReceive
(
'healthcheck'
)->
once
()->
andReturn
(
true
);
$code
=
\Artisan
::
call
(
"status:health"
);
$output
=
trim
(
\Artisan
::
output
());
$this
->
assertSame
(
0
,
$code
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 10:45 AM (3 d, 16 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18863834
Default Alt Text
HealthTest.php (975 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline