Page MenuHomePhorge

HealthTest.php
No OneTemporary

Authored By
Unknown
Size
975 B
Referenced Files
None
Subscribers
None

HealthTest.php

<?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

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)

Event Timeline