Implemented TreeCollectionSource

This commit is contained in:
Kevin Frantz
2018-11-02 21:38:04 +01:00
parent e0edc8935d
commit a66e2c3b46
11 changed files with 111 additions and 77 deletions

View File

@@ -5,8 +5,8 @@ namespace Tests\Unit\Entity\Attribut;
use PHPUnit\Framework\TestCase;
use App\Entity\Attribut\MembershipsAttributInterface;
use App\Entity\Attribut\MembershipsAttribut;
use App\Entity\Source\Collection\MemberCollectionSourceInterface;
use Doctrine\Common\Collections\ArrayCollection;
use App\Entity\Source\Collection\TreeCollectionSourceInterface;
class MembershipsAttributTest extends TestCase
{
@@ -30,7 +30,7 @@ class MembershipsAttributTest extends TestCase
public function testAccessors(): void
{
$membership = $this->createMock(MemberCollectionSourceInterface::class);
$membership = $this->createMock(TreeCollectionSourceInterface::class);
$this->assertNull($this->memberships->setMemberships(new ArrayCollection([$membership])));
$this->assertEquals($this->memberships->getMemberships()->get(0), $membership);
}