mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-17 04:40:08 -07:00
28 lines
710 B
PHP
28 lines
710 B
PHP
<?php
|
|
|
|
namespace Tests\AppBundle\Repository\Rebrickable;
|
|
|
|
|
|
use AppBundle\Entity\Rebrickable\Inventory;
|
|
use AppBundle\Repository\Rebrickable\InventoryRepository;
|
|
use Tests\AppBundle\BaseTest;
|
|
use Tests\AppBundle\Fixtures\LoadBaseData;
|
|
|
|
class InventoryRepositoryTest extends BaseTest
|
|
{
|
|
/** @var InventoryRepository */
|
|
private $repository;
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
$this->setUpDb([LoadBaseData::class]);
|
|
|
|
$this->repository = $this->em->getRepository(Inventory::class);
|
|
}
|
|
|
|
public function testFindNewestInventoryBySetNumber()
|
|
{
|
|
$this->assertEquals('2',$this->repository->findNewestInventoryBySetNumber('8049-1')->getVersion());
|
|
}
|
|
} |