use KernelTestBehaviour;
private Connection
$connection;
private Migration1678969082DropVariantListingFields
$migration;
protected function setUp(): void
{ $this->connection = KernelLifecycleManager::
getConnection();
$this->migration =
new Migration1678969082DropVariantListingFields();
$this->
rollbackMigration();
} public function testMigration(): void
{ $this->migration->
updateDestructive($this->connection
);
$this->migration->
updateDestructive($this->connection
);
static::
assertFalse(EntityDefinitionQueryHelper::
columnExists($this->connection, 'product', 'configurator_group_config'
));
static::
assertFalse(EntityDefinitionQueryHelper::
columnExists($this->connection, 'product', 'display_parent'
));
static::
assertFalse(EntityDefinitionQueryHelper::
columnExists($this->connection, 'product', 'main_variant_id'
));
}