function UpgradePathTestCase::__construct

Constructs an UpgradePathTestCase object.

Parameters

$test_id: (optional) The ID of the test. Tests with the same id are reported together.

Overrides DrupalWebTestCase::__construct

File

modules/simpletest/tests/upgrade/upgrade.test, line 52

Class

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

Code

function __construct($test_id = NULL) {
    parent::__construct($test_id);
    $connection_info = Database::getConnectionInfo();
    $this->skipUpgradeTest = (bool) ($connection_info['default']['driver'] == 'pgsql');
    $this->zlibInstalled = function_exists('gzopen');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.