setupDB example

use MigrationUntouchedDbTestTrait;

    /** * No en-GB as language, de-LI as Default language and de-DE as second language * All en-GB contents should be written in de-LI and de-De contents will be written in de-DE */
    public function testMigrationWithoutEnGb(): void
    {
        $orgConnection = $this->getContainer()->get(Connection::class);
        $orgConnection->rollBack();

        $connection = $this->setupDB($orgConnection);

        $migrationCollection = $this->collectMigrations();

        foreach ($migrationCollection->getMigrationSteps() as $_className => $migration) {
            try {
                $migration->update($connection);
            } catch (\Exception $e) {
                static::fail($_className . \PHP_EOL . $e->getMessage());
            }

            if ($this->isBasicDataMigration($_className)) {
                
Home | Imprint | This part of the site doesn't use cookies.