mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 09:12:09 +00:00
Optimized CrudAttribut logic
This commit is contained in:
1 parent
93bf246915
commit
6897b44aec
4 files changed
+22
-22
No files matched your search
@@ -73,9 +73,9 @@ class RightTest extends TestCase
|
||||
|
||||
public function testRight(): void
|
||||
{
|
||||
foreach (CRUDType::getChoices() as $key => $value) {
|
||||
$this->assertNull($this->right->setCrud($key));
|
||||
$this->assertEquals($key, $this->right->getCrud());
|
||||
foreach (CRUDType::getChoices() as $enum) {
|
||||
$this->assertNull($this->right->setCrud($enum));
|
||||
$this->assertEquals($enum, $this->right->getCrud());
|
||||
}
|
||||
$this->expectException(NoValidChoiceException::class);
|
||||
$this->right->setCrud('NoneValidType');
|
||||
|
||||
Reference in new issue
Block a user