function SettingsTest::testGetHashSaltEmpty
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetHashSaltEmpty()
- 10 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetHashSaltEmpty()
- 11.x core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetHashSaltEmpty()
Tests Settings::getHashSalt() with no hash salt value.
@covers ::getHashSalt
@dataProvider providerTestGetHashSaltEmpty
File
-
core/
tests/ Drupal/ Tests/ Core/ Site/ SettingsTest.php, line 88
Class
- SettingsTest
- @coversDefaultClass \Drupal\Core\Site\Settings @group Site
Namespace
Drupal\Tests\Core\SiteCode
public function testGetHashSaltEmpty(array $config) {
// 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.