Wrote tests for dimension helper method and optimized dimension helper

This commit is contained in:
Kevin Frantz
2018-11-03 15:14:04 +01:00
parent a66e2c3b46
commit 556c919f1f
3 changed files with 99 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ namespace App\Entity\Method;
use Doctrine\Common\Collections\Collection;
use App\Helper\DimensionHelper;
use App\Entity\Attribut\MembersAttributInterface;
use App\Helper\DimensionHelperInterface;
/**
* @todo Create test for trait!
@@ -15,7 +15,7 @@ trait CollectionDimensionHelperMethod
{
public function getDimensions(?int $dimension = null, Collection $elements = null): Collection
{
$dimensionHelper = new DimensionHelper(__FUNCTION__, MembersAttributInterface::class, $this, 'collection');
$dimensionHelper = new DimensionHelper(__FUNCTION__, DimensionHelperInterface::class, $this, 'collection');
return $dimensionHelper->getDimensions($dimension, $elements);
}