mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 14:07:25 +01:00
Solved tests of MemberRelationAttribut
This commit is contained in:
parent
67ef76b308
commit
68e8537ff1
@ -11,7 +11,7 @@ trait MemberRelationAttribut
|
||||
*/
|
||||
protected $memberRelation;
|
||||
|
||||
public function setMembersRelation(MemberRelationInterface $memberRelation): void
|
||||
public function setMemberRelation(MemberRelationInterface $memberRelation): void
|
||||
{
|
||||
$this->memberRelation = $memberRelation;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
|
||||
interface MemberRelationAttributInterface
|
||||
{
|
||||
public function setMembersRelation(MemberRelationInterface $memberRelation): void;
|
||||
public function setMemberRelation(MemberRelationInterface $memberRelation): void;
|
||||
|
||||
public function getMemberRelation(): MemberRelationInterface;
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace Tests\Unit\Entity\Attribut;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Entity\Attribut\MemberRelationAttributInterface;
|
||||
use App\Entity\Attribut\MemberRelationAttribut;
|
||||
use App\Entity\Meta\Relation\Member\MemberRelationInterface;
|
||||
@ -31,7 +30,7 @@ class MemberRelationAttributTest extends TestCase
|
||||
public function testAccessors(): void
|
||||
{
|
||||
$membership = $this->createMock(MemberRelationInterface::class);
|
||||
$this->assertNull($this->memberRelation->setMemberRelation(new ArrayCollection([$membership])));
|
||||
$this->assertEquals($this->memberRelation->getMemberRelation()->get(0), $membership);
|
||||
$this->assertNull($this->memberRelation->setMemberRelation($membership));
|
||||
$this->assertEquals($this->memberRelation->getMemberRelation(), $membership);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user