]> BookStack Code Mirror - bookstack/blobdiff - tests/ErrorTest.php
Added more complexity in an attempt to make ldap host failover fit
[bookstack] / tests / ErrorTest.php
index 2eeb6537e0e0b9afaf5823ad99a66e2eab7a1322..ebd9874d32134afb6b0ac9f31d9724595584991d 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Tests;
 
-use BookStack\Entities\Models\Book;
 use Illuminate\Support\Facades\Log;
 
 class ErrorTest extends TestCase
@@ -27,7 +26,7 @@ class ErrorTest extends TestCase
     {
         $this->actingAs($this->getViewer());
         $handler = $this->withTestLogger();
-        $book = Book::query()->first();
+        $book = $this->entities->book();
 
         // Ensure we're seeing errors
         Log::error('cat');