mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Refactored\moved Attribut folder
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Tests\Unit\Attribut;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use App\Attribut\CreatorRelationAttributInterface;
|
||||
use App\Attribut\CreatorRelationAttribut;
|
||||
use App\Entity\Meta\Relation\Parent\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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user