]> BookStack Code Mirror - bookstack/blobdiff - tests/Permissions/RolesTest.php
Guest create page: name field autofocus
[bookstack] / tests / Permissions / RolesTest.php
index 6c2f4c0df204697edfca5e82b216711ec2530efe..88d400259e0e683a8c4d3a21906b0842aa6e6e7e 100644 (file)
@@ -173,16 +173,16 @@ class RolesTest extends TestCase
 
         $this->assertDatabaseHas('entity_permissions', [
             'role_id' => $roleA->id,
-            'restrictable_id' => $page->id,
-            'restrictable_type' => $page->getMorphClass(),
+            'entity_id' => $page->id,
+            'entity_type' => $page->getMorphClass(),
         ]);
 
         $this->asAdmin()->delete("/settings/roles/delete/$roleA->id");
 
         $this->assertDatabaseMissing('entity_permissions', [
             'role_id' => $roleA->id,
-            'restrictable_id' => $page->id,
-            'restrictable_type' => $page->getMorphClass(),
+            'entity_id' => $page->id,
+            'entity_type' => $page->getMorphClass(),
         ]);
     }