function SettingsTest::testGetHashSalt

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetHashSalt()
  2. 10 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetHashSalt()
  3. 9 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetHashSalt()
  4. 8.9.x core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetHashSalt()

Tests Settings::getHashSalt().

File

core/tests/Drupal/Tests/Core/Site/SettingsTest.php, line 87

Class

SettingsTest
Tests Drupal\Core\Site\Settings.

Namespace

Drupal\Tests\Core\Site

Code

public function testGetHashSalt() : void {
  $this->assertSame($this->config['hash_salt'], $this->settings
    ->getHashSalt());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.