mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Solved tests of MemberRelationAttribut
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user