1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-16 12:20:09 -07:00
2017-06-25 23:00:09 +02:00

27 lines
628 B
PHP

<?php
namespace Tests\AppBundle\Repository\Rebrickable;
use AppBundle\Entity\Rebrickable\Part;
use AppBundle\Repository\Rebrickable\PartRepository;
use Tests\AppBundle\BaseTest;
use Tests\AppBundle\Fixtures\LoadBaseData;
class PartRepositoryTest extends BaseTest
{
/** @var PartRepository */
private $repository;
public function setUp()
{
parent::setUp();
$this->setUpDb([LoadBaseData::class]);
$this->repository = $this->em->getRepository(Part::class);
}
public function testFindAllNotPaired() {
$this->assertCount(1,$this->repository->findAllNotPaired());
}
}