mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 05:47:11 +02:00
Optimized LayerIconClassMap
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace tests\Unit\Domain\TwigManagement;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Infinito\Exception\NotSetException;
|
||||
use Infinito\Domain\TwigManagement\LayerIconClassMap;
|
||||
use Infinito\DBAL\Types\Meta\Right\LayerType;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
class LayerIconClassMapTest extends TestCase
|
||||
{
|
||||
public function testException(): void
|
||||
{
|
||||
$this->expectException(NotSetException::class);
|
||||
$this->assertIsString(LayerIconClassMap::getIconClass('123123V'));
|
||||
}
|
||||
|
||||
public function testAllLayersSet(): void
|
||||
{
|
||||
foreach (LayerType::getValues() as $value) {
|
||||
$this->assertIsString(LayerIconClassMap::getIconClass($value));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user