public function PrivateKeyTest::testGet in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/PrivateKeyTest.php \Drupal\Tests\Core\PrivateKeyTest::testGet()
Tests PrivateKey::get().
File
- core/
tests/ Drupal/ Tests/ Core/ PrivateKeyTest.php, line 57 - Contains \Drupal\Tests\Core\PrivateKeyTest.
Class
- PrivateKeyTest
- Tests the PrivateKey class.
Namespace
Drupal\Tests\CoreCode
public function testGet() {
$this->state
->expects($this
->once())
->method('get')
->with('system.private_key')
->will($this
->returnValue($this->key));
$this
->assertEquals($this->key, $this->privateKey
->get());
}