You are here

public function SettingsTest::testGetInstance in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetInstance()
  2. 10 core/tests/Drupal/Tests/Core/Site/SettingsTest.php \Drupal\Tests\Core\Site\SettingsTest::testGetInstance()

@covers ::getInstance

File

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

Class

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

Namespace

Drupal\Tests\Core\Site

Code

public function testGetInstance() {
  $singleton = $this->settings
    ->getInstance();
  $this
    ->assertEquals($singleton, $this->settings);
}