You are here

public function UpdatePathTestBase::__construct in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php \Drupal\FunctionalTests\Update\UpdatePathTestBase::__construct()
  2. 8 core/modules/system/src/Tests/Update/UpdatePathTestBase.php \Drupal\system\Tests\Update\UpdatePathTestBase::__construct()

Constructs an UpdatePathTestCase object.

Parameters

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

array $data: (optional) The test case data. Defaults to none.

string $data_name: The test data name. Defaults to none.

Overrides BrowserTestBase::__construct

File

core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php, line 138

Class

UpdatePathTestBase
Provides a base class for writing an update test.

Namespace

Drupal\FunctionalTests\Update

Code

public function __construct($test_id = NULL, array $data = [], $data_name = '') {
  parent::__construct($test_id, $data, $data_name);
  $this->zlibInstalled = function_exists('gzopen');
}