Skip to content

Commit

Permalink
Merge pull request #22 from cron-eu/phpunit-fix
Browse files Browse the repository at this point in the history
Fix CI workflow in Github Actions (phpunit)
  • Loading branch information
baschny authored Sep 14, 2023
2 parents 74bdf93 + ab69a82 commit 8790cfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ jobs:
extensions: intl, mbstring, pdo, pdo_sqlite, sqlite3, zip
tools: composer:v2

- name: Install Composer Dependencies
run: composer install

- name: Set TYPO3 Version
run: composer require typo3/cms-core=${{ matrix.typo3-version }}

Expand Down
4 changes: 2 additions & 2 deletions Classes/Generator/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ protected function getFakerFields()
}

// Workaround so DataHandler doesn't set crdate to $GLOBALS['EXEC_TIME']
if ($GLOBALS['TCA'][$this->table]['ctrl']['crdate'] &&
if (isset($GLOBALS['TCA'][$this->table]['ctrl']['crdate']) &&
$GLOBALS['TCA'][$this->table]['ctrl']['crdate'] == $name) {
unset($GLOBALS['TCA'][$this->table]['ctrl']['crdate']);
}
}

return $fields;
}
}
}

0 comments on commit 8790cfb

Please sign in to comment.