mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 05:47:11 +02:00
Implemented draft for PureSourceCreateType Test and adapted classes to it
This commit is contained in:
@@ -22,6 +22,8 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
use App\Domain\FormManagement\RequestedActionFormBuilderService;
|
||||
use App\Domain\FormManagement\FormClassNameService;
|
||||
use App\Domain\RequestManagement\Entity\RequestedEntityService;
|
||||
use App\Entity\Source\PureSource;
|
||||
use App\Attribut\ClassAttributInterface;
|
||||
|
||||
/**
|
||||
* @todo Implement test and logic!!!!!
|
||||
@@ -77,6 +79,7 @@ class CreateSourceActionIntegrationTest extends KernelTestCase
|
||||
|
||||
public function testCreateWithGuestUser(): void
|
||||
{
|
||||
$this->request->attributes->set(ClassAttributInterface::CLASS_ATTRIBUT_NAME, PureSource::class);
|
||||
$this->assertInstanceOf(PureSourceInterface::class, $this->createSourceAction->execute());
|
||||
}
|
||||
|
||||
|
@@ -48,7 +48,6 @@ class PureSourceIntegrationTest extends KernelTestCase
|
||||
$this->assertGreaterThan(0, $this->pureSource->getId());
|
||||
$this->entityManager->remove($this->pureSource);
|
||||
$this->entityManager->flush();
|
||||
$this->expectException(\TypeError::class);
|
||||
$this->pureSource->getId();
|
||||
$this->assertNull($this->pureSource->getId());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user