mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 09:12:09 +00:00
Implemented getChoices and getValues from Doctrine ENUM on the right way
This commit is contained in:
1 parent
0bf7554afb
commit
90df65828c
21 files changed
+29
-29
No files matched your search
+2
-2
@@ -57,7 +57,7 @@ class RequestedActionTest extends TestCase
|
||||
|
||||
public function testCrud(): void
|
||||
{
|
||||
foreach (CRUDType::getChoices() as $crud) {
|
||||
foreach (CRUDType::getValues() as $crud) {
|
||||
$this->action->setActionType($crud);
|
||||
$this->assertEquals($crud, $this->action->getActionType());
|
||||
$this->assertEquals($crud, $this->requestedRight->getActionType());
|
||||
@@ -66,7 +66,7 @@ class RequestedActionTest extends TestCase
|
||||
|
||||
public function testLayer(): void
|
||||
{
|
||||
foreach (LayerType::getChoices() as $LayerType) {
|
||||
foreach (LayerType::getValues() as $LayerType) {
|
||||
$this->action->setLayer($LayerType);
|
||||
$this->assertEquals($LayerType, $this->action->getLayer());
|
||||
$this->assertEquals($LayerType, $this->requestedRight->getLayer());
|
||||
|
||||
Reference in new issue
Block a user