You are here

public function TestDiscoveryCacheContext::__construct in SimpleTest 8.3

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

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;
}