$this->customerGroupRepository->
create([$data],
$context);
return $id;
} private function createDefaultCustomer(Context
$context): void
{ $id = Uuid::
randomHex();
$shippingAddressId = Uuid::
randomHex();
$billingAddressId = Uuid::
randomHex();
$salutationId = Uuid::
fromBytesToHex($this->
getRandomSalutationId());
$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',