From: Dan Brown Date: Thu, 28 Jan 2021 23:13:55 +0000 (+0000) Subject: Changed how the cache is mocked in status test X-Git-Tag: v21.04~1^2~20 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/0dac9c68f052e4bbfb888f95c17fd21bf855679a Changed how the cache is mocked in status test --- 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);