infinito/application/symfony/tests/Unit/Domain/Twig/LayerIconClassMapTest.php

28 lines
692 B
PHP
Raw Normal View History

2019-03-16 20:35:14 +01:00
<?php
2019-05-30 17:10:41 +02:00
namespace tests\Unit\Domain\Twig;
2019-03-16 20:35:14 +01:00
use Infinito\DBAL\Types\Meta\Right\LayerType;
2020-04-02 21:13:35 +02:00
use Infinito\Domain\Twig\LayerIconClassMap;
2019-04-15 01:37:17 +02:00
use Infinito\Exception\Collection\NotSetElementException;
2020-04-02 21:13:35 +02:00
use PHPUnit\Framework\TestCase;
2019-03-16 20:35:14 +01:00
/**
* @author kevinfrantz
*/
class LayerIconClassMapTest extends TestCase
{
public function testException(): void
{
2019-04-15 01:37:17 +02:00
$this->expectException(NotSetElementException::class);
2019-03-16 20:35:14 +01:00
$this->assertIsString(LayerIconClassMap::getIconClass('123123V'));
}
public function testAllLayersSet(): void
{
foreach (LayerType::getValues() as $value) {
$this->assertIsString(LayerIconClassMap::getIconClass($value));
}
}
}