public function CsrfTokenGeneratorTest::testGetWithNoHashSalt in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php \Drupal\Tests\Core\Access\CsrfTokenGeneratorTest::testGetWithNoHashSalt()
Tests the exception thrown when no 'hash_salt' is provided in settings.
@covers ::get @expectedException \RuntimeException
File
- core/
tests/ Drupal/ Tests/ Core/ Access/ CsrfTokenGeneratorTest.php, line 208 - Contains \Drupal\Tests\Core\Access\CsrfTokenGeneratorTest.
Class
- CsrfTokenGeneratorTest
- Tests the CsrfTokenGenerator class.
Namespace
Drupal\Tests\Core\AccessCode
public function testGetWithNoHashSalt() {
// Update settings with no hash salt.
new Settings(array());
$generator = new CsrfTokenGenerator($this->privateKey, $this->sessionMetadata);
$generator
->get();
}