mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-03 18:58:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			692 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			692 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace tests\Unit\Domain\Twig;
 | 
						|
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
use Infinito\Domain\Twig\LayerIconClassMap;
 | 
						|
use Infinito\DBAL\Types\Meta\Right\LayerType;
 | 
						|
use Infinito\Exception\Collection\NotSetElementException;
 | 
						|
 | 
						|
/**
 | 
						|
 * @author kevinfrantz
 | 
						|
 */
 | 
						|
class LayerIconClassMapTest extends TestCase
 | 
						|
{
 | 
						|
    public function testException(): void
 | 
						|
    {
 | 
						|
        $this->expectException(NotSetElementException::class);
 | 
						|
        $this->assertIsString(LayerIconClassMap::getIconClass('123123V'));
 | 
						|
    }
 | 
						|
 | 
						|
    public function testAllLayersSet(): void
 | 
						|
    {
 | 
						|
        foreach (LayerType::getValues() as $value) {
 | 
						|
            $this->assertIsString(LayerIconClassMap::getIconClass($value));
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |