protected function setUp(): void
{ $orderLineItemDownloadRepository =
$this->
createMock(EntityRepository::
class);
$orderLineItemDownloadRepository->
method('update'
)->
willReturnCallback( function Darray
$payload, Context
$context): EntityWrittenContainerEvent
{ $this->updatePayload =
$payload;
return new EntityWrittenContainerEvent($context,
new NestedEventCollection([]),
[]);
} );
$this->action =
new GrantDownloadAccessAction($orderLineItemDownloadRepository);
$this->updatePayload =
[];
} public function testGetName(): void
{ static::
assertEquals('action.grant.download.access',
$this->action->
getName());
} public function testGetRequirements(): void
{