mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 14:27:28 +01:00
31 lines
917 B
PHP
31 lines
917 B
PHP
<?php
|
|
|
|
namespace Infinito\Tests\Unit\Attribut;
|
|
|
|
use Infinito\Attribut\CreatorRelationAttribut;
|
|
use Infinito\Attribut\CreatorRelationAttributInterface;
|
|
use Infinito\Entity\Meta\Relation\Parent\CreatorRelationInterface;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
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());
|
|
}
|
|
}
|