protected function SettingsTest::setUp in Drupal 8
Same name in this branch
- 8 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::setUp()
- 8 core/modules/views_ui/tests/src/Functional/SettingsTest.php \Drupal\Tests\views_ui\Functional\SettingsTest::setUp()
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::setUp()
- 10 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 35
Class
- SettingsTest
- @coversDefaultClass \Drupal\Core\Site\Settings @group Site
Namespace
Drupal\Tests\Core\SiteCode
protected function setUp() {
$this->config = [
'one' => '1',
'two' => '2',
'hash_salt' => $this
->randomMachineName(),
];
$this->settings = new Settings($this->config);
}