mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 05:47:11 +02:00
Implemented getChoices and getValues from Doctrine ENUM on the right way
This commit is contained in:
@@ -73,7 +73,7 @@ class RightTest extends TestCase
|
||||
|
||||
public function testRight(): void
|
||||
{
|
||||
foreach (CRUDType::getChoices() as $enum) {
|
||||
foreach (CRUDType::getValues() as $enum) {
|
||||
$this->assertNull($this->right->setActionType($enum));
|
||||
$this->assertEquals($enum, $this->right->getActionType());
|
||||
}
|
||||
@@ -83,7 +83,7 @@ class RightTest extends TestCase
|
||||
|
||||
public function testLayer(): void
|
||||
{
|
||||
foreach (LayerType::getChoices() as $choice) {
|
||||
foreach (LayerType::getValues() as $choice) {
|
||||
$this->assertNull($this->right->setLayer($choice));
|
||||
$this->assertEquals($choice, $this->right->getLayer());
|
||||
}
|
||||
|
Reference in New Issue
Block a user