]> BookStack Code Mirror - bookstack/blobdiff - tests/StatusTest.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / tests / StatusTest.php
index 09882759c387ee37680f1a0741ad8e18344dc854..82c377615c9adf8a5eebb0578eae1a70f07921e9 100644 (file)
@@ -1,10 +1,13 @@
 <?php
 
+namespace Tests;
+
+use Exception;
 use Illuminate\Cache\ArrayStore;
 use Illuminate\Support\Facades\Cache;
 use Illuminate\Support\Facades\DB;
 use Illuminate\Support\Facades\Session;
-use Tests\TestCase;
+use Mockery;
 
 class StatusTest extends TestCase
 {
@@ -34,7 +37,7 @@ 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->assertStatus(500);