function SettingsTest::testGetHashSaltEmpty
Tests Settings::getHashSalt() with no hash salt value.
@covers ::getHashSalt
@dataProvider providerTestGetHashSaltEmpty
File
-
core/
tests/ Drupal/ Tests/ Core/ Site/ SettingsTest.php, line 92
Class
- SettingsTest
- @coversDefaultClass \Drupal\Core\Site\Settings[[api-linebreak]] @runTestsInSeparateProcesses @group Site
Namespace
Drupal\Tests\Core\SiteCode
public function testGetHashSaltEmpty(array $config) : void {
// Re-create settings with no 'hash_salt' key.
$settings = new Settings($config);
$this->expectException(\RuntimeException::class);
$settings->getHashSalt();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.