$countries =
$this->connection->
fetchFirstColumn('SELECT id FROM country WHERE active = 1'
);
$salesChannelIds =
$this->connection->
fetchFirstColumn('SELECT LOWER(HEX(id)) FROM sales_channel'
);
$customer =
[ 'id' =>
$id,
'customerNumber' => '1337',
'salutationId' =>
$salutationId,
'firstName' => 'Max',
'lastName' => 'Mustermann',
'email' => 'test@example.com',
'password' => 'shopware',
'defaultPaymentMethodId' =>
$this->
getDefaultPaymentMethod(),
'groupId' => TestDefaults::FALLBACK_CUSTOMER_GROUP,
'salesChannelId' =>
$salesChannelIds[array_rand($salesChannelIds)],
'defaultBillingAddressId' =>
$billingAddressId,
'defaultShippingAddressId' =>
$shippingAddressId,
'addresses' =>
[ [ 'id' =>
$shippingAddressId,
'customerId' =>
$id,
'countryId' => Uuid::
fromBytesToHex($countries[array_rand($countries)]),
'salutationId' =>
$salutationId,
'firstName' => 'Max',