]> BookStack Code Mirror - bookstack/blobdiff - tests/Permissions/EntityPermissionsTest.php
Extracted entity testcase methods to own class
[bookstack] / tests / Permissions / EntityPermissionsTest.php
index ed037d3ac53c990fb7e7ab926cb761e4edda06ef..9e80b752adc31b4a067724576edd61ce1920400d 100644 (file)
@@ -36,7 +36,7 @@ class EntityPermissionsTest extends TestCase
             $this->user->roles->first(),
             $this->viewer->roles->first(),
         ];
-        $this->setEntityRestrictions($entity, $actions, $roles);
+        $this->entities->setPermissions($entity, $actions, $roles);
     }
 
     public function test_bookshelf_view_restriction()