$this->
insertTestCustomer();
/** @var CustomerEntity $customer */
$customer =
$this->repository->
search(new Criteria(), Context::
createDefaultContext())->
first();
$this->writer->
update( $this->customerDefinition,
[ [ 'id' =>
$customer->
getId(),
'doubleOptInRegistration' => !
$customer->
getDoubleOptInRegistration(),
'doubleOptInEmailSentDate'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
'doubleOptInConfirmDate'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
],
],
WriteContext::
createFromContext(Context::
createDefaultContext()) );
$sql = '
SELECT
doubleOptInRegistration,
doubleOptInEmailSentDate,
doubleOptInConfirmDate,
double_opt_in_registration,
double_opt_in_email_sent_date,
double_opt_in_confirm_date
FROM `customer`;
';