NOW MANAGED ON CODEBERG
Changed how the cache is mocked in status test
Dan Brown0dac9c68f052
diff --git a/tests/StatusTest.php b/tests/StatusTest.phpindex ca150d0d6..b4c35cf91 100644--- a/tests/StatusTest.php+++ b/tests/StatusTest.php@@ -1,5 +1,6 @@<?php+use Illuminate\Cache\ArrayStore;use Illuminate\Support\Facades\DB;use Illuminate\Support\Facades\Cache;use Illuminate\Support\Facades\Session;@@ -31,7 +32,9 @@ class StatusTest extends TestCasepublic function test_returns_500_status_and_false_on_wrong_cache_return(){- Cache::partialMock()->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);