mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Finished refactor of entity repos
Removed entity-specific repos and standardised the majority of repo calls to be applicable to all entity types
This commit is contained in:
@ -13,8 +13,8 @@ class SortTest extends TestCase
|
||||
public function test_drafts_do_not_show_up()
|
||||
{
|
||||
$this->asAdmin();
|
||||
$pageRepo = app('\BookStack\Repos\PageRepo');
|
||||
$draft = $pageRepo->getDraftPage($this->book);
|
||||
$entityRepo = app('\BookStack\Repos\EntityRepo');
|
||||
$draft = $entityRepo->getDraftPage($this->book);
|
||||
|
||||
$this->visit($this->book->getUrl())
|
||||
->see($draft->name)
|
||||
|
Reference in New Issue
Block a user