]> BookStack Code Mirror - bookstack/blobdiff - tests/PublicActionTest.php
Started new permission-caching/querying model
[bookstack] / tests / PublicActionTest.php
index 7e3f7be0032fae9b8ab5030adc6175b46be8aad5..7df5bd42261ea7dd59fb1f4ca098d44adbfab9fa 100644 (file)
@@ -89,7 +89,6 @@ class PublicActionTest extends TestCase
         foreach (RolePermission::all() as $perm) {
             $publicRole->attachPermission($perm);
         }
-        $this->app->make(JointPermissionBuilder::class)->rebuildForRole($publicRole);
         user()->clearPermissionCache();
 
         $chapter = $this->entities->chapter();
@@ -173,7 +172,7 @@ class PublicActionTest extends TestCase
     {
         $this->setSettings(['app-public' => 'true']);
         $book = $this->entities->book();
-        $this->entities->setPermissions($book);
+        $this->permissions->setEntityPermissions($book);
 
         $resp = $this->get($book->getUrl());
         $resp->assertSee('Book not found');