diff --git a/core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php b/core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php index 38ee14fbd5..16e4c5b10d 100644 --- a/core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php +++ b/core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php @@ -2,6 +2,7 @@ namespace Drupal\Tests\Core\Session; +use Drupal\Core\Site\Settings; use Drupal\Tests\UnitTestCase; use Symfony\Component\HttpFoundation\Request; @@ -11,6 +12,15 @@ */ class SessionConfigurationTest extends UnitTestCase { + /** + * {@inheritdoc} + */ + protected function setUp() { + new Settings([ + 'hash_salt' => $this->randomMachineName(), + ]); + } + /** * Constructs a partially mocked SUT. *