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:
@ -168,7 +168,7 @@ class EntityTest extends TestCase
|
||||
$entities = $this->createEntityChainBelongingToUser($creator, $updater);
|
||||
$this->actingAs($creator);
|
||||
app('BookStack\Repos\UserRepo')->destroy($creator);
|
||||
app('BookStack\Repos\PageRepo')->saveRevision($entities['page']);
|
||||
app('BookStack\Repos\EntityRepo')->savePageRevision($entities['page']);
|
||||
|
||||
$this->checkEntitiesViewable($entities);
|
||||
}
|
||||
@ -181,7 +181,7 @@ class EntityTest extends TestCase
|
||||
$entities = $this->createEntityChainBelongingToUser($creator, $updater);
|
||||
$this->actingAs($updater);
|
||||
app('BookStack\Repos\UserRepo')->destroy($updater);
|
||||
app('BookStack\Repos\PageRepo')->saveRevision($entities['page']);
|
||||
app('BookStack\Repos\EntityRepo')->savePageRevision($entities['page']);
|
||||
|
||||
$this->checkEntitiesViewable($entities);
|
||||
}
|
||||
|
Reference in New Issue
Block a user