mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Implemented tests for DimensionHelper
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Helper\Dimension;
|
||||
use App\Helper\DimensionHelper;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -34,8 +33,9 @@ trait MembersAttribut
|
||||
*/
|
||||
public function getMembersIncludingChildren(?int $dimension = null, Collection $members = null): Collection
|
||||
{
|
||||
$dimensionHelper = new Dimension(__FUNCTION__, MembersAttributInterface::class, $this, 'members');
|
||||
return $dimensionHelper->getDimensions($dimension,$members);
|
||||
$dimensionHelper = new DimensionHelper(__FUNCTION__, MembersAttributInterface::class, $this, 'members');
|
||||
|
||||
return $dimensionHelper->getDimensions($dimension, $members);
|
||||
}
|
||||
|
||||
private function continueIncludeMembersLoop(?int $dimension): bool
|
||||
|
@@ -3,7 +3,6 @@
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use App\Entity\Source\GroupSourceInterface;
|
||||
use App\Entity\Source\Collection\MemberCollectionSourceInterface;
|
||||
|
||||
/**
|
||||
|
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
@@ -9,15 +10,14 @@ trait SourceCollectionAttribut
|
||||
/**
|
||||
* @param Collection|SourceInterface[] $collection
|
||||
*/
|
||||
public function setCollection(Collection $collection):void{
|
||||
|
||||
public function setCollection(Collection $collection): void
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return Collection|SourceInterface[]
|
||||
*/
|
||||
public function getCollection():Collection{
|
||||
|
||||
public function getCollection(): Collection
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
@@ -9,10 +10,10 @@ interface SourceCollectionAttributInterface
|
||||
/**
|
||||
* @param Collection|SourceInterface[] $collection
|
||||
*/
|
||||
public function setCollection(Collection $collection):void;
|
||||
|
||||
public function setCollection(Collection $collection): void;
|
||||
|
||||
/**
|
||||
* @return Collection|SourceInterface[]
|
||||
*/
|
||||
public function getCollection():Collection;
|
||||
}
|
||||
public function getCollection(): Collection;
|
||||
}
|
||||
|
Reference in New Issue
Block a user