mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 09:12:09 +00:00
Expanded rights to also manage actions instead of just a cruds
This commit is contained in:
1 parent
465d6d6d01
commit
3e91aed050
27 files changed
+91
-98
No files matched your search
+2
-2
@@ -52,7 +52,7 @@ class RequestedActionTest extends TestCase
|
||||
$list = ActionType::EXECUTE;
|
||||
$this->action->setActionType($list);
|
||||
$this->assertEquals($list, $this->action->getActionType());
|
||||
$this->assertEquals(CRUDType::READ, $this->requestedRight->getCrud());
|
||||
$this->assertEquals(CRUDType::READ, $this->requestedRight->getActionType());
|
||||
}
|
||||
|
||||
public function testCrud(): void
|
||||
@@ -60,7 +60,7 @@ class RequestedActionTest extends TestCase
|
||||
foreach (CRUDType::getChoices() as $crud) {
|
||||
$this->action->setActionType($crud);
|
||||
$this->assertEquals($crud, $this->action->getActionType());
|
||||
$this->assertEquals($crud, $this->requestedRight->getCrud());
|
||||
$this->assertEquals($crud, $this->requestedRight->getActionType());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user