]> 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 6b69355fcd3a8cc218469557e0b45b48258e190c..ebd9874d32134afb6b0ac9f31d9724595584991d 100644 (file)
@@ -1,11 +1,11 @@
-<?php namespace Tests;
+<?php
+
+namespace Tests;
 
-use BookStack\Entities\Models\Book;
 use Illuminate\Support\Facades\Log;
 
 class ErrorTest extends TestCase
 {
-
     public function test_404_page_does_not_show_login()
     {
         // Due to middleware being handled differently this will not fail
@@ -26,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');
@@ -45,4 +45,4 @@ class ErrorTest extends TestCase
         $resp->assertStatus(404);
         $resp->assertSeeText('Image Not Found');
     }
-}
\ No newline at end of file
+}