1 upgrade.test protected UpgradePathTestCase::checkRequirements()

Checks that zlib is enabled in order to run the upgrade tests.

Overrides BackdropTestCase::checkRequirements

File

core/modules/simpletest/tests/upgrade/upgrade.test, line 33

Class

UpgradePathTestCase
Perform end-to-end tests of the upgrade path.

Code

protected function checkRequirements() {
  $errors = parent::checkRequirements();
  if (!function_exists('gzopen')) {
    $errors[] = 'Missing zlib requirement for upgrade tests.';
  }
  return $errors;
}