mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Removed logic from persistence layer
This commit is contained in:
@@ -6,10 +6,6 @@ use PHPUnit\Framework\TestCase;
|
||||
use App\Entity\Meta\Reciever;
|
||||
use App\Entity\Meta\RecieverInterface;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use App\Entity\Source\Data\UserSource;
|
||||
use App\Entity\Source\Collection\TreeCollectionSource;
|
||||
use App\Entity\Source\Collection\TreeCollectionSourceInterface;
|
||||
use App\Entity\Source\Data\UserSourceInterface;
|
||||
|
||||
class RecieverTest extends TestCase
|
||||
{
|
||||
@@ -29,40 +25,4 @@ class RecieverTest extends TestCase
|
||||
$this->expectException(\TypeError::class);
|
||||
$this->reciever->getRight();
|
||||
}
|
||||
|
||||
public function testDimensions(): void
|
||||
{
|
||||
/**
|
||||
* @var \PHPUnit\Framework\MockObject\MockObject|UserSourceInterface
|
||||
*/
|
||||
$user1 = new UserSource();
|
||||
/**
|
||||
* @var \PHPUnit\Framework\MockObject\MockObject|UserSourceInterface
|
||||
*/
|
||||
$user2 = new UserSource();
|
||||
/**
|
||||
* @var \PHPUnit\Framework\MockObject\MockObject|UserSourceInterface
|
||||
*/
|
||||
$user3 = new UserSource();
|
||||
/**
|
||||
* @var \PHPUnit\Framework\MockObject\MockObject|TreeCollectionSourceInterface
|
||||
*/
|
||||
$group1 = new TreeCollectionSource();
|
||||
/**
|
||||
* @var \PHPUnit\Framework\MockObject\MockObject|TreeCollectionSourceInterface
|
||||
*/
|
||||
$group2 = new TreeCollectionSource();
|
||||
/**
|
||||
* @var \PHPUnit\Framework\MockObject\MockObject|TreeCollectionSourceInterface
|
||||
*/
|
||||
$group3 = new TreeCollectionSource();
|
||||
$group1->getCollection()->add($user1);
|
||||
$group1->getCollection()->add($group2);
|
||||
$group2->getCollection()->add($user2);
|
||||
$group2->getCollection()->add($user3);
|
||||
$group2->getCollection()->add($group3);
|
||||
$this->reciever->getCollection()->add($group1);
|
||||
$this->assertEquals($group1, $this->reciever->getCollection()->get(0));
|
||||
$this->assertEquals(6, $this->reciever->getDimensions()->count());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user