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

28 lines
698 B
PHP
Raw Normal View History

2019-03-16 20:35:14 +01:00
<?php
namespace tests\Unit\Domain\TwigManagement;
use PHPUnit\Framework\TestCase;
use Infinito\Exception\Collection\NotSetException;
2019-03-16 20:35:14 +01:00
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));
}
}
}