1 backup.test protected BackupBaseTestCase::checkRequirements()

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

Overrides BackdropTestCase::checkRequirements

File

core/modules/simpletest/tests/backup.test, line 34
Test classes for verifying Backup and Restore functionality.

Class

BackupBaseTestCase
Base class for testing Backup and Restore functionality.

Code

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