checksWithNoChangesExpected example


    public function testMigration(array $data): void
    {
        $this->setDB($data);

        $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 {
                
Home | Imprint | This part of the site doesn't use cookies.