You are here

protected function SettingsTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/views_ui/src/Tests/SettingsTest.php \Drupal\views_ui\Tests\SettingsTest::setUp()
  2. 8 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::setUp()
Same name and namespace in other branches
  1. 8.0 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 36
Contains \Drupal\Tests\Core\Site\SettingsTest.

Class

SettingsTest
@coversDefaultClass \Drupal\Core\Site\Settings @group Site

Namespace

Drupal\Tests\Core\Site

Code

protected function setUp() {
  $this->config = array(
    'one' => '1',
    'two' => '2',
    'hash_salt' => $this
      ->randomMachineName(),
  );
  $this->settings = new Settings($this->config);
}