mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Updated test for perms. changes and fixed static issues
This commit is contained in:
@@ -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(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user