You are here

public function TestDiscoveryCacheContext::__construct in Drupal 8

Construct a test discovery cache context.

Parameters

\Drupal\simpletest\TestDiscovery $test_discovery: The test discovery service.

\Drupal\Core\PrivateKey $private_key: The private key service.

File

core/modules/simpletest/src/Cache/Context/TestDiscoveryCacheContext.php, line 51

Class

TestDiscoveryCacheContext
Defines the TestDiscoveryCacheContext service.

Namespace

Drupal\simpletest\Cache\Context

Code

public function __construct(TestDiscovery $test_discovery, PrivateKey $private_key) {
  $this->testDiscovery = $test_discovery;
  $this->privateKey = $private_key;
}