function TestDiscoveryCacheContext::__construct
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\ContextCode
public function __construct(TestDiscovery $test_discovery, PrivateKey $private_key) {
$this->testDiscovery = $test_discovery;
$this->privateKey = $private_key;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.