<?php
use Illuminate\Cache\ArrayStore;
-use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Cache;
+use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Session;
use Tests\TestCase;
{
public function test_returns_json_with_expected_results()
{
- $resp = $this->get("/status");
+ $resp = $this->get('/status');
$resp->assertStatus(200);
$resp->assertJson([
'database' => true,
- 'cache' => true,
- 'session' => true,
+ 'cache' => true,
+ 'session' => true,
]);
}
{
DB::shouldReceive('table')->andThrow(new Exception());
- $resp = $this->get("/status");
+ $resp = $this->get('/status');
$resp->assertStatus(500);
$resp->assertJson([
'database' => false,
Cache::swap($mockStore);
$mockStore->shouldReceive('get')->andReturn('cat');
- $resp = $this->get("/status");
+ $resp = $this->get('/status');
$resp->assertStatus(500);
$resp->assertJson([
'cache' => false,
Session::swap($mockSession);
$mockSession->shouldReceive('get')->andReturn('cat');
- $resp = $this->get("/status");
+ $resp = $this->get('/status');
$resp->assertStatus(500);
$resp->assertJson([
'session' => false,
]);
}
-}
\ No newline at end of file
+}