2018-11-26 21:41:06 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests\Unit\Entity\Meta\Relation\Member;
|
|
|
|
|
2020-04-02 21:13:35 +02:00
|
|
|
use Doctrine\Common\Collections\Collection;
|
2019-02-17 14:33:19 +01:00
|
|
|
use Infinito\Entity\Meta\Relation\Member\MemberRelation;
|
|
|
|
use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface;
|
2020-04-02 21:13:35 +02:00
|
|
|
use PHPUnit\Framework\TestCase;
|
2018-11-26 21:41:06 +01:00
|
|
|
|
|
|
|
class MemberRelationTest extends TestCase
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var MemberRelationInterface
|
|
|
|
*/
|
|
|
|
private $memberRelation;
|
|
|
|
|
|
|
|
public function setUp(): void
|
|
|
|
{
|
|
|
|
$this->memberRelation = new MemberRelation();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testConstructor(): void
|
|
|
|
{
|
|
|
|
$this->assertInstanceOf(Collection::class, $this->memberRelation->getMembers());
|
2018-11-26 22:33:01 +01:00
|
|
|
$this->assertInstanceOf(Collection::class, $this->memberRelation->getMemberships());
|
2018-11-26 21:41:06 +01:00
|
|
|
}
|
|
|
|
}
|