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