protected function SettingsTest::setUp in Drupal 9
Same name in this branch
- 9 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::setUp()
- 9 core/modules/views_ui/tests/src/Functional/SettingsTest.php \Drupal\Tests\views_ui\Functional\SettingsTest::setUp()
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::setUp()
@covers ::__construct
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Site/ SettingsTest.php, line 33
Class
- SettingsTest
- @coversDefaultClass \Drupal\Core\Site\Settings @runTestsInSeparateProcesses @group Site
Namespace
Drupal\Tests\Core\SiteCode
protected function setUp() : void {
$this->config = [
'one' => '1',
'two' => '2',
'hash_salt' => $this
->randomMachineName(),
];
$this->settings = new Settings($this->config);
}