mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 05:47:11 +02:00
Implemented test for exception
This commit is contained in:
@@ -10,6 +10,8 @@ use App\Domain\SourceManagement\SourceMetaInformation;
|
||||
use App\Domain\SourceManagement\SourceMetaInformationInterface;
|
||||
use App\Domain\TemplateManagement\TemplatePathFormAndViewInterface;
|
||||
use App\Domain\FormManagement\FormMetaInformationInterface;
|
||||
use App\Entity\EntityInterface;
|
||||
use App\Exception\NotCorrectInstanceException;
|
||||
|
||||
class SourceMetaInformationTest extends TestCase
|
||||
{
|
||||
@@ -79,4 +81,10 @@ class SourceMetaInformationTest extends TestCase
|
||||
{
|
||||
$this->assertInstanceOf(FormMetaInformationInterface::class, $this->sourceMetaInformation->getFormMetaInformation());
|
||||
}
|
||||
|
||||
public function testTypeError(): void
|
||||
{
|
||||
$this->expectException(NotCorrectInstanceException::class);
|
||||
new SourceMetaInformation($this->createMock(EntityInterface::class));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user