'eventName' => CustomerLoginEvent::EVENT_NAME,
'url' => 'https://test.com',
],
],
]], Context::
createDefaultContext());
$permissionPersister =
$this->
getContainer()->
get(PermissionPersister::
class);
$permissions = Permissions::
fromArray([ 'customer' =>
['read'
],
]);
$permissionPersister->
updatePrivileges($permissions,
$aclRoleId);
$this->
appendNewResponse(new Response(200
));
$customerId = Uuid::
randomHex();
$this->
createCustomer($customerId);
$customer =
$this->
getContainer()->
get('customer.repository'
)->
search(new Criteria([$customerId]), Context::
createDefaultContext())->
get($customerId);
static::
assertInstanceOf(CustomerEntity::
class,
$customer);
$event =
new CustomerLoginEvent( $this->
getContainer()->
get(SalesChannelContextFactory::
class)->
create(Uuid::
randomHex(), TestDefaults::SALES_CHANNEL
),
$customer,