mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Refactored code through substituting by PureSource
This commit is contained in:
@@ -5,9 +5,9 @@ namespace Tests\Unit\Entity\Source\Complex\Collection;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use App\Entity\Source\AbstractSource;
|
||||
use App\Entity\Source\Complex\Collection\TreeCollectionSourceInterface;
|
||||
use App\Entity\Source\Complex\Collection\TreeCollectionSource;
|
||||
use App\Entity\Source\PureSource;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
@@ -32,8 +32,7 @@ class TreeCollectionSourceTest extends TestCase
|
||||
|
||||
public function testAccessors()
|
||||
{
|
||||
$member = new class() extends AbstractSource {
|
||||
};
|
||||
$member = new PureSource();
|
||||
$this->tree->setCollection(new ArrayCollection([
|
||||
$member,
|
||||
]));
|
||||
|
Reference in New Issue
Block a user