mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Tests\Unit\Entity\Attribut;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use App\Entity\Attribut\ParentRelationAttributInterface;
|
|
use App\Entity\Attribut\ParentRelationAttribut;
|
|
use App\Entity\Meta\Relation\Parent\ParentRelationInterface;
|
|
use App\Entity\Attribut\CreatorRelationAttributInterface;
|
|
use App\Entity\Attribut\CreatorRelationAttribut;
|
|
use App\Entity\Meta\Relation\CreatorRelationInterface;
|
|
|
|
class CreatorRelationAttributTest extends TestCase
|
|
{
|
|
/***
|
|
* @var CreatorRelationAttributInterface
|
|
*/
|
|
protected $creatorRelationAttribut;
|
|
|
|
public function setUp(): void
|
|
{
|
|
$this->creatorRelationAttribut = new class() implements CreatorRelationAttributInterface {
|
|
use CreatorRelationAttribut;
|
|
};
|
|
}
|
|
|
|
public function testAccessors(): void
|
|
{
|
|
$relation = $this->createMock(CreatorRelationInterface::class);
|
|
$this->assertNull($this->creatorRelationAttribut->setCreatorRelation($relation));
|
|
$this->assertEquals($relation, $this->creatorRelationAttribut->getCreatorRelation());
|
|
}
|
|
}
|