mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-08 18:06:14 +00:00
fix rector
This commit is contained in:
parent
2bf8ad5d6c
commit
c8e5d0eb37
@ -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":{}}');
|
||||
|
Loading…
x
Reference in New Issue
Block a user