2018-11-25 23:12:42 +01:00
|
|
|
<?php
|
|
|
|
|
2019-01-20 10:41:58 +01:00
|
|
|
namespace App\Tests\Unit\Attribut;
|
2018-11-25 23:12:42 +01:00
|
|
|
|
|
|
|
use PHPUnit\Framework\TestCase;
|
2019-01-20 10:41:58 +01:00
|
|
|
use App\Attribut\CreatorRelationAttributInterface;
|
|
|
|
use App\Attribut\CreatorRelationAttribut;
|
2018-11-25 23:38:22 +01:00
|
|
|
use App\Entity\Meta\Relation\Parent\CreatorRelationInterface;
|
2018-11-25 23:12:42 +01:00
|
|
|
|
|
|
|
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());
|
|
|
|
}
|
|
|
|
}
|