X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/9af636bd48f5c7cec7f73746307800b9572d2644..refs/pull/3918/head:/tests/ErrorTest.php diff --git a/tests/ErrorTest.php b/tests/ErrorTest.php index 6b69355fc..ebd9874d3 100644 --- a/tests/ErrorTest.php +++ b/tests/ErrorTest.php @@ -1,11 +1,11 @@ -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 +}