fix rector

This commit is contained in:
Julien Fastré 2025-07-04 14:35:46 +02:00
parent 2bf8ad5d6c
commit c8e5d0eb37
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -58,7 +58,7 @@ final class TicketListApiControllerTest extends TestCase
$serializer = $this->prophesize(SerializerInterface::class);
$serializer->serialize(
Argument::that(fn(Collection $collection) => $collection->getItems() === $tickets),
Argument::that(fn (Collection $collection) => $collection->getItems() === $tickets),
'json',
['groups' => 'read']
)->willReturn('{"items":[{},{}],"pagination":{}}');
@ -96,9 +96,9 @@ final class TicketListApiControllerTest extends TestCase
$ticketRepository = $this->prophesize(TicketACLAwareRepositoryInterface::class);
$tickets = [new Ticket(), new Ticket()];
$ticketRepository->countTickets(Argument::that(fn($params) => isset($params['byPerson']) && in_array($person, $params['byPerson'])))->willReturn(2);
$ticketRepository->countTickets(Argument::that(fn ($params) => isset($params['byPerson']) && in_array($person, $params['byPerson'])))->willReturn(2);
$ticketRepository->findTickets(
Argument::that(fn($params) => isset($params['byPerson']) && in_array($person, $params['byPerson'])),
Argument::that(fn ($params) => isset($params['byPerson']) && in_array($person, $params['byPerson'])),
0,
10
)->willReturn($tickets);
@ -112,7 +112,7 @@ final class TicketListApiControllerTest extends TestCase
$serializer = $this->prophesize(SerializerInterface::class);
$serializer->serialize(
Argument::that(fn(Collection $collection) => $collection->getItems() === $tickets),
Argument::that(fn (Collection $collection) => $collection->getItems() === $tickets),
'json',
['groups' => 'read']
)->willReturn('{"items":[{},{}],"pagination":{}}');