protected function PrivateKeyTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/PrivateKeyTest.php \Drupal\Tests\Core\PrivateKeyTest::setUp()
- 10 core/tests/Drupal/Tests/Core/PrivateKeyTest.php \Drupal\Tests\Core\PrivateKeyTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ PrivateKeyTest.php, line 40
Class
- PrivateKeyTest
- Tests the PrivateKey class.
Namespace
Drupal\Tests\CoreCode
protected function setUp() : void {
parent::setUp();
$this->key = Crypt::randomBytesBase64(55);
$this->state = $this
->createMock('Drupal\\Core\\State\\StateInterface');
$this->privateKey = new PrivateKey($this->state);
}