]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
Major permission naming refactor and database migration cleanup
[bookstack] / tests / TestCase.php
index 1b6a69c6276515d0e827fbc264591ad622ea15e8..5d0545b6633ba5b459a9c604f2a5781e44f6954b 100644 (file)
@@ -65,8 +65,8 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
         $page = factory(BookStack\Page::class)->create(['created_by' => $creatorUser->id, 'updated_by' => $updaterUser->id, 'book_id' => $book->id]);
         $book->chapters()->saveMany([$chapter]);
         $chapter->pages()->saveMany([$page]);
-        $restrictionService = $this->app[\BookStack\Services\RestrictionService::class];
-        $restrictionService->buildEntityPermissionsForEntity($book);
+        $restrictionService = $this->app[\BookStack\Services\PermissionService::class];
+        $restrictionService->buildJointPermissionsForEntity($book);
         return [
             'book' => $book,
             'chapter' => $chapter,