public function SettingsTest::testGetHashSaltEmpty in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
@expectedException \RuntimeException
File
- core/
tests/ Drupal/ Tests/ Core/ Site/ SettingsTest.php, line 91 - Contains \Drupal\Tests\Core\Site\SettingsTest.
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);
$settings
->getHashSalt();
}