Finished refactoring of exceptions

This commit is contained in:
Kevin Frantz
2019-04-15 01:37:17 +02:00
parent 9f179ead73
commit 06f69675ac
49 changed files with 159 additions and 135 deletions

View File

@@ -6,8 +6,8 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Infinito\Domain\RepositoryManagement\LayerRepositoryFactoryServiceInterface;
use Infinito\Domain\RepositoryManagement\LayerRepositoryFactoryService;
use Infinito\Repository\RepositoryInterface;
use Infinito\Exception\Collection\NotSetException;
use Infinito\Domain\LayerManagement\LayerClassMap;
use Infinito\Exception\Collection\NotSetElementException;
/**
* @author kevinfrantz
@@ -32,7 +32,7 @@ class LayerRepositoryFactoryServiceTest extends KernelTestCase
$repositoy = $this->layerRepositoryFactoryService->getRepository($layer);
$this->assertInstanceOf(RepositoryInterface::class, $repositoy);
}
$this->expectException(NotSetException::class);
$this->expectException(NotSetElementException::class);
$repositoy = $this->layerRepositoryFactoryService->getRepository('UnknownLayer');
}
}