Migration1678969082DropVariantListingFields example

class Migration1678969082DropVariantListingFieldsTest extends TestCase
{
    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'));
        
Home | Imprint | This part of the site doesn't use cookies.