public function SettingsTest::testGetHashSaltEmpty in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetHashSaltEmpty()
- 9 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 @runTestsInSeparateProcesses @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();
}