Implemented getChoices and getValues from Doctrine ENUM on the right way

This commit is contained in:
Kevin Frantz
2019-02-25 13:32:37 +01:00
parent 0bf7554afb
commit 90df65828c
21 changed files with 29 additions and 29 deletions

View File

@@ -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));
}
}