checkMigrationForUnavailableLanguage example

$updated_at = $this->getUpdatedAt();

        if (!$data['SlovakiaAvailable']) {
            // country not available makes the migration not find the country. no changes should be made             $this->checksWithNoChangesExpected();
        } else {
            $this->migration->update($this->connection);
            if ($data['languageEnAvailable']) {
                $this->checkMigrationForAvailableLanguage($this->languageEN, (string) $data['expectedEnTranslation'](string) $data['EnTranslation']$updated_at['en']);
            } else {
                // language is not Available so nothing should change for this language                 $this->checkMigrationForUnavailableLanguage($this->languageEN);
            }
            if ($data['languageDeAvailable']) {
                $this->checkMigrationForAvailableLanguage($this->languageDE, (string) $data['expectedDeTranslation'](string) $data['DeTranslation']$updated_at['de']);
            } else {
                // language is not Available so nothing should change                 $this->checkMigrationForUnavailableLanguage($this->languageDE);
            }
        }
    }

    /** * runs the migration twice, changes should only happen the first time */
Home | Imprint | This part of the site doesn't use cookies.