]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
Fixed local_secure_restricted preventing attachment uploads
[bookstack] / tests / TestCase.php
index 9ffce917e36e280cd482508ac76894b6653bca28..3ca7638c8e92c8a4d6071e024fb282f1c4e0cfa9 100644 (file)
@@ -430,14 +430,14 @@ abstract class TestCase extends BaseTestCase
     }
 
     /**
-     * @return Entity[]
+     * @return array{page: Page, chapter: Chapter, book: Book, bookshelf: Bookshelf}
      */
     protected function getEachEntityType(): array
     {
         return [
-            'page' => Page::query()->first(),
-            'chapter' => Chapter::query()->first(),
-            'book' => Book::query()->first(),
+            'page'      => Page::query()->first(),
+            'chapter'   => Chapter::query()->first(),
+            'book'      => Book::query()->first(),
             'bookshelf' => Bookshelf::query()->first(),
         ];
     }