Implemented tests for DimensionHelper

This commit is contained in:
Kevin Frantz
2018-11-01 22:34:26 +01:00
parent 0cd09258e7
commit fdeaa390d3
19 changed files with 187 additions and 104 deletions

View File

@@ -1,4 +1,5 @@
<?php
namespace Tests\Unit\Entity\Source\Collection;
use PHPUnit\Framework\TestCase;
@@ -9,14 +10,11 @@ use App\Entity\Source\Collection\MemberCollectionSourceInterface;
use App\Entity\Source\Collection\MemberCollectionSource;
/**
*
* @author kevinfrantz
*/
class MemberCollectionSourceTest extends TestCase
{
/**
*
* @var MemberCollectionSourceInterface
*/
protected $groupSource;
@@ -33,9 +31,10 @@ class MemberCollectionSourceTest extends TestCase
public function testMembers()
{
$member = new class() extends AbstractSource {};
$member = new class() extends AbstractSource {
};
$this->groupSource->setMembers(new ArrayCollection([
$member
$member,
]));
$this->assertEquals($member, $this->groupSource->getMembers()
->get(0));