1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Quick run through of applying new test entity helper class

This commit is contained in:
Dan Brown
2022-09-29 22:11:16 +01:00
parent b56f7355aa
commit 900e853b15
47 changed files with 198 additions and 286 deletions

View File

@ -2,7 +2,6 @@
namespace Tests\Entity;
use BookStack\Entities\Models\Book;
use BookStack\Entities\Models\Page;
use BookStack\Entities\Models\PageRevision;
use BookStack\Entities\Repos\PageRepo;
@ -10,20 +9,13 @@ use Tests\TestCase;
class PageDraftTest extends TestCase
{
/**
* @var Page
*/
protected $page;
/**
* @var PageRepo
*/
protected $pageRepo;
protected Page $page;
protected PageRepo $pageRepo;
protected function setUp(): void
{
parent::setUp();
$this->page = Page::query()->first();
$this->page = $this->entities->page();
$this->pageRepo = app()->make(PageRepo::class);
}