countEventParticipations = self::getContainer()->get(CountEventParticipations::class); } public function testExecuteQuery(): void { $qb = $this->countEventParticipations->initiateQuery([], [], []) ->setMaxResults(1); $results = $qb->getQuery()->getResult(AbstractQuery::HYDRATE_ARRAY); self::assertIsArray($results, 'smoke test: test that the result is an array'); } }