X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/1df9ec96477740360fc6542beed902cc2571c6de..refs/pull/3918/head:/tests/Permissions/RolesTest.php diff --git a/tests/Permissions/RolesTest.php b/tests/Permissions/RolesTest.php index 6c2f4c0df..88d400259 100644 --- a/tests/Permissions/RolesTest.php +++ b/tests/Permissions/RolesTest.php @@ -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(), ]); }