$migration->
update($this->connection
);
} private function addCustomerWithDoubleOptInButNotConfirmed(string
$customerId): int|string
{ $customerAddressId = Uuid::
randomBytes();
$now =
new \
DateTimeImmutable();
return $this->connection->
insert('customer',
[ 'id' =>
$customerId,
'customer_group_id' => Uuid::
fromHexToBytes(TestDefaults::FALLBACK_CUSTOMER_GROUP
),
'default_payment_method_id' =>
$this->connection->
fetchOne('SELECT id FROM `payment_method` WHERE `active` = 1'
),
'sales_channel_id' => Uuid::
fromHexToBytes(TestDefaults::SALES_CHANNEL
),
'language_id' => Uuid::
fromHexToBytes(Defaults::LANGUAGE_SYSTEM
),
'default_billing_address_id' =>
$customerAddressId,
'default_shipping_address_id' =>
$customerAddressId,
'customer_number' => '123',
'first_name' => 'Bar',
'last_name' => 'Foo',
'email' => 'foo@bar.com',
'active' => 0,
'double_opt_in_registration' => 1,
'double_opt_in_email_sent_date' =>
$now->
format('Y-m-d H:i:s'
),