$this->connection->
executeStatement('DROP TRIGGER IF EXISTS customer_double_opt_in_insert;'
);
$this->connection->
executeStatement('DROP TRIGGER IF EXISTS customer_double_opt_in_update;'
);
$this->connection->
beginTransaction();
parent::
tearDown();
} public function testColumns(): void
{ $schemaManager =
$this->connection->
createSchemaManager();
$columns =
$schemaManager->
listTableColumns(CustomerDefinition::ENTITY_NAME
);
static::
assertArrayHasKey('double_opt_in_registration',
$columns);
static::
assertArrayHasKey('double_opt_in_email_sent_date',
$columns);
static::
assertArrayHasKey('double_opt_in_confirm_date',
$columns);
} public function testInsertTriggers(): void
{ $this->
insertTestCustomer();
$sql = '
SELECT
doubleOptInRegistration,
doubleOptInEmailSentDate,
doubleOptInConfirmDate,
double_opt_in_registration,
double_opt_in_email_sent_date,
double_opt_in_confirm_date
FROM `customer`;
';