protected function UpgradePathTestBase::checkRequirements

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

Overrides TestBase::checkRequirements

File

drupal/core/modules/system/lib/Drupal/system/Tests/Upgrade/UpgradePathTestBase.php, line 60
Definition of Drupal\system\Tests\Upgrade\UpgradePathTestBase.

Class

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

Namespace

Drupal\system\Tests\Upgrade

Code

protected function checkRequirements() {
  if (!function_exists('gzopen')) {
    return array(
      'Missing zlib requirement for upgrade tests.',
    );
  }
  return parent::checkRequirements();
}