mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
Ajout du statut opening / closed pour la liste des tickets
This commit is contained in:
@@ -12,6 +12,7 @@ declare(strict_types=1);
|
||||
namespace Chill\TicketBundle\Tests\Repository;
|
||||
|
||||
use Chill\PersonBundle\DataFixtures\Helper\RandomPersonHelperTrait;
|
||||
use Chill\TicketBundle\Entity\StateEnum;
|
||||
use Chill\TicketBundle\Repository\TicketACLAwareRepository;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
@@ -63,4 +64,18 @@ class TicketACLAwareRepositoryTest extends KernelTestCase
|
||||
|
||||
self::assertIsInt($result);
|
||||
}
|
||||
|
||||
public function testCountTicketByCurrentStateSingleState(): void
|
||||
{
|
||||
$result = $this->repository->countTickets(['byCurrentState' => [StateEnum::OPEN]]);
|
||||
|
||||
self::assertIsInt($result);
|
||||
}
|
||||
|
||||
public function testFindTicketByCurrentStateMultipleState(): void
|
||||
{
|
||||
$result = $this->repository->countTickets(['byCurrentState' => [StateEnum::OPEN, StateEnum::CLOSED]]);
|
||||
|
||||
self::assertIsInt($result);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user