mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-11-04 19:27:57 +00:00
Implemented getChoices and getValues from Doctrine ENUM on the right way
This commit is contained in:
@@ -33,7 +33,7 @@ class ActionTypeAttributTest extends TestCase
|
||||
|
||||
public function testAccessors(): void
|
||||
{
|
||||
foreach (ActionType::getChoices() as $enum) {
|
||||
foreach (ActionType::getValues() as $enum) {
|
||||
$this->assertNull($this->actionTypeAttribut->setActionType($enum));
|
||||
$this->assertEquals($enum, $this->actionTypeAttribut->getActionType());
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ class CrudAttributTest extends TestCase
|
||||
|
||||
public function testAccessors(): void
|
||||
{
|
||||
foreach (CRUDType::getChoices() as $enum) {
|
||||
foreach (CRUDType::getValues() as $enum) {
|
||||
$this->assertNull($this->crudAttribut->setCrud($enum));
|
||||
$this->assertEquals($enum, $this->crudAttribut->getCrud());
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ class LayerAttributTest extends TestCase
|
||||
|
||||
public function testAccessors(): void
|
||||
{
|
||||
foreach (LayerType::getChoices() as $enum) {
|
||||
foreach (LayerType::getValues() as $enum) {
|
||||
$this->assertNull($this->layerAttribut->setLayer($enum));
|
||||
$this->assertEquals($enum, $this->layerAttribut->getLayer());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user