From 0dac9c68f052e4bbfb888f95c17fd21bf855679a Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Thu, 28 Jan 2021 23:13:55 +0000 Subject: [PATCH] Changed how the cache is mocked in status test --- tests/StatusTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/StatusTest.php b/tests/StatusTest.php index ca150d0d6..b4c35cf91 100644 --- a/tests/StatusTest.php +++ b/tests/StatusTest.php @@ -1,5 +1,6 @@ shouldReceive('get')->andReturn('cat'); + $mockStore = Mockery::mock(new ArrayStore())->makePartial(); + Cache::swap($mockStore); + $mockStore->shouldReceive('get')->andReturn('cat'); $resp = $this->get("/status"); $resp->assertStatus(500);