You are here

protected function PrivateKeyTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/PrivateKeyTest.php \Drupal\Tests\Core\PrivateKeyTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/PrivateKeyTest.php, line 45
Contains \Drupal\Tests\Core\PrivateKeyTest.

Class

PrivateKeyTest
Tests the PrivateKey class.

Namespace

Drupal\Tests\Core

Code

protected function setUp() {
  parent::setUp();
  $this->key = Crypt::randomBytesBase64(55);
  $this->state = $this
    ->getMock('Drupal\\Core\\State\\StateInterface');
  $this->privateKey = new PrivateKey($this->state);
}