diff --git a/application/src/Entity/Attribut/MemberRelationAttribut.php b/application/src/Entity/Attribut/MemberRelationAttribut.php index c3b5ba9..e8bb623 100644 --- a/application/src/Entity/Attribut/MemberRelationAttribut.php +++ b/application/src/Entity/Attribut/MemberRelationAttribut.php @@ -11,7 +11,7 @@ trait MemberRelationAttribut */ protected $memberRelation; - public function setMembersRelation(MemberRelationInterface $memberRelation): void + public function setMemberRelation(MemberRelationInterface $memberRelation): void { $this->memberRelation = $memberRelation; } diff --git a/application/src/Entity/Attribut/MemberRelationAttributInterface.php b/application/src/Entity/Attribut/MemberRelationAttributInterface.php index bb9d3e8..46cb5bc 100644 --- a/application/src/Entity/Attribut/MemberRelationAttributInterface.php +++ b/application/src/Entity/Attribut/MemberRelationAttributInterface.php @@ -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; } diff --git a/application/tests/Unit/Entity/Attribut/MemberRelationAttributTest.php b/application/tests/Unit/Entity/Attribut/MemberRelationAttributTest.php index 037275f..dc47a25 100644 --- a/application/tests/Unit/Entity/Attribut/MemberRelationAttributTest.php +++ b/application/tests/Unit/Entity/Attribut/MemberRelationAttributTest.php @@ -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); } }