$customer =
[ 'id' =>
$customerId,
'number' => '1337',
'salutationId' =>
$this->
getValidSalutationId(),
'firstName' => 'Max',
'lastName' => 'Mustermann',
'customerNumber' => '1337',
'email' => Uuid::
randomHex() . '@example.com',
'password' => TestDefaults::HASHED_PASSWORD,
'defaultPaymentMethodId' =>
$this->
getValidPaymentMethodId(),
'groupId' =>
$this->
createNetCustomerGroup(),
'salesChannelId' => TestDefaults::SALES_CHANNEL,
'defaultBillingAddressId' =>
$addressId,
'defaultShippingAddressId' =>
$addressId,
'addresses' =>
[ [ 'id' =>
$addressId,
'customerId' =>
$customerId,
'countryId' =>
$this->
getValidCountryId(),
'salutationId' =>
$this->
getValidSalutationId(),
'firstName' => 'Max',
'lastName' => 'Mustermann',