entityManager = self::getContainer()->get(EntityManagerInterface::class); $this->repository = new TicketACLAwareRepository($this->entityManager); } public function testFindNoParameters(): void { // Test the findTickets method with byPerson parameter $actual = $this->repository->findTickets([]); // Only verify that the query executes successfully without checking results self::assertIsList($actual); } public function testFindTicketByPerson(): void { $person = $this->getRandomPerson($this->entityManager); // Test the findTickets method with byPerson parameter $actual = $this->repository->findTickets(['byPerson' => [$person]]); // Only verify that the query executes successfully without checking results self::assertIsList($actual); } public function testCountTicketsByPerson(): void { $person = $this->getRandomPerson($this->entityManager); $result = $this->repository->countTickets(['byPerson' => [$person]]); self::assertIsInt($result); } }