]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/ConvertTest.php
Guest create page: name field autofocus
[bookstack] / tests / Entity / ConvertTest.php
index 15205c9adb7d68138fd4a1c82f418b720531d1be..16dd890683640499ed0f5ba33c3b669b478a7c26 100644 (file)
@@ -24,8 +24,7 @@ class ConvertTest extends TestCase
 
     public function test_convert_chapter_to_book()
     {
-        /** @var Chapter $chapter */
-        $chapter = Chapter::query()->whereHas('pages')->first();
+        $chapter = $this->entities->chapterHasPages();
         $chapter->tags()->save(new Tag(['name' => 'Category', 'value' => 'Penguins']));
         /** @var Page $childPage */
         $childPage = $chapter->pages()->first();