]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/EntitySearchTest.php
Update search.js
[bookstack] / tests / Entity / EntitySearchTest.php
index 9f77972c4cd1cc8ec6796e6d817b73ac5864d483..94e28e94450db50de762fdde2e62383150eb5767 100644 (file)
@@ -42,7 +42,7 @@ class EntitySearchTest extends TestCase
 
     public function test_book_search()
     {
-        $book = \BookStack\Book::all()->first();
+        $book = \BookStack\Book::first();
         $page = $book->pages->last();
         $chapter = $book->chapters->last();