X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e7a7d8cc1d77b032c4efe9d08ec6c749430b7b57..refs/pull/5280/head:/tests/StatusTest.php diff --git a/tests/StatusTest.php b/tests/StatusTest.php index b4c35cf91..82c377615 100644 --- a/tests/StatusTest.php +++ b/tests/StatusTest.php @@ -1,21 +1,24 @@ get("/status"); + $resp = $this->get('/status'); $resp->assertStatus(200); $resp->assertJson([ 'database' => true, - 'cache' => true, - 'session' => true, + 'cache' => true, + 'session' => true, ]); } @@ -23,7 +26,7 @@ class StatusTest extends TestCase { DB::shouldReceive('table')->andThrow(new Exception()); - $resp = $this->get("/status"); + $resp = $this->get('/status'); $resp->assertStatus(500); $resp->assertJson([ 'database' => false, @@ -34,9 +37,9 @@ class StatusTest extends TestCase { $mockStore = Mockery::mock(new ArrayStore())->makePartial(); Cache::swap($mockStore); - $mockStore->shouldReceive('get')->andReturn('cat'); + $mockStore->shouldReceive('pull')->andReturn('cat'); - $resp = $this->get("/status"); + $resp = $this->get('/status'); $resp->assertStatus(500); $resp->assertJson([ 'cache' => false, @@ -50,10 +53,10 @@ class StatusTest extends TestCase 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 +}