mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Quick run through of applying new test entity helper class
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user