Applied CS fixer

This commit is contained in:
Kevin Frantz
2018-10-29 19:01:00 +01:00
parent 91c41105c7
commit 6bc95f9729
46 changed files with 270 additions and 281 deletions

View File

@@ -1,4 +1,5 @@
<?php
namespace tests\unit\Entity\Source;
use App\Entity\Source\GroupSourceInterface;
@@ -9,27 +10,26 @@ use Doctrine\Common\Collections\ArrayCollection;
use App\Entity\Source\AbstractSource;
/**
*
* @author kevinfrantz
*
*/
class GroupSourceTest extends TestCase
{
/**
*
* @var GroupSourceInterface
*/
protected $groupSource;
public function setUp():void {
public function setUp(): void
{
$this->groupSource = new GroupSource();
}
public function testMembers(){
public function testMembers()
{
$this->assertInstanceOf(Collection::class, $this->groupSource->getMembers());
$member = new class extends AbstractSource{};
$member = new class() extends AbstractSource {
};
$this->groupSource->setMembers(new ArrayCollection([$member]));
$this->assertEquals($member, $this->groupSource->getMembers()->get(0));
}
}