mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized RequestManagement and tests
This commit is contained in:
@@ -4,6 +4,7 @@ namespace tests\Unit\Domain\RequestManagement\Entity;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use App\Domain\RequestManagement\Entity\RequestedEntity;
|
||||
use App\Domain\RepositoryManagement\LayerRepositoryFactoryServiceInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -12,7 +13,8 @@ class RequestedEntityTest extends TestCase
|
||||
{
|
||||
public function testSetByIdentity(): void
|
||||
{
|
||||
$requestedEntity = new RequestedEntity();
|
||||
$layerRepositoryFactoryService = $this->createMock(LayerRepositoryFactoryServiceInterface::class);
|
||||
$requestedEntity = new RequestedEntity($layerRepositoryFactoryService);
|
||||
$slug = 'test';
|
||||
$requestedEntity->setIdentity($slug);
|
||||
$this->assertEquals($slug, $requestedEntity->getSlug());
|
||||
|
Reference in New Issue
Block a user