'email' => 'test@example.com',
'password' => 'shopware',
'created_at' =>
$now->
format('Y-m-d H:i:s'
),
'default_payment_method_id' =>
$defaultPaymentMethod,
'sales_channel_id' => Uuid::
fromHexToBytes(TestDefaults::SALES_CHANNEL
),
'customer_group_id' => Uuid::
fromHexToBytes(TestDefaults::FALLBACK_CUSTOMER_GROUP
),
'language_id' => Uuid::
fromHexToBytes(Defaults::LANGUAGE_SYSTEM
),
'default_billing_address_id' => Uuid::
fromHexToBytes($billingAddressId),
'default_shipping_address_id' => Uuid::
randomBytes(),
],
$customerOverrides);
$this->connection->
insert('customer',
$customer);
$this->connection->
insert('customer_address',
$customerAddress);
} private function dropAccountType(): void
{ if ($this->
hasColumn('customer', 'account_type'
)) { $this->connection->
executeStatement('ALTER TABLE `customer` DROP COLUMN `account_type`'
);
} } /**
* @return false|CustomerData
*/