mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Continued integration of CreatorParent
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?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;
|
||||
|
||||
class ParentRelationAttributTest extends TestCase
|
||||
{
|
||||
/***
|
||||
* @var ParentRelationAttributInterface
|
||||
*/
|
||||
protected $parentRelationAttribut;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->parentRelationAttribut = new class() implements ParentRelationAttributInterface {
|
||||
use ParentRelationAttribut;
|
||||
};
|
||||
}
|
||||
|
||||
public function testAccessors(): void
|
||||
{
|
||||
$relation = $this->createMock(ParentRelationInterface::class);
|
||||
$this->assertNull($this->parentRelationAttribut->setParentRelation($relation));
|
||||
$this->assertEquals($relation, $this->parentRelationAttribut->getParentRelation());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user