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