mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented getChoices and getValues from Doctrine ENUM on the right way
This commit is contained in:
@@ -14,7 +14,7 @@ class LayerActionMapTest extends TestCase
|
||||
{
|
||||
public function testGetLayersBySource(): void
|
||||
{
|
||||
foreach (ActionType::getChoices() as $action) {
|
||||
foreach (ActionType::getValues() as $action) {
|
||||
$layers = LayerActionMap::getLayers($action);
|
||||
$this->assertArraySubset([LayerType::SOURCE], $layers);
|
||||
}
|
||||
@@ -23,7 +23,7 @@ class LayerActionMapTest extends TestCase
|
||||
public function testGetActionsBySource(): void
|
||||
{
|
||||
$actions = LayerActionMap::getActions(LayerType::SOURCE);
|
||||
foreach (ActionType::getChoices() as $action) {
|
||||
foreach (ActionType::getValues() as $action) {
|
||||
$this->assertTrue(in_array($action, $actions));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user