function SettingsTest::testGetInstance

Tests get instance.

@legacy-covers ::getInstance

File

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

Class

SettingsTest
Tests Drupal\Core\Site\Settings.

Namespace

Drupal\Tests\Core\Site

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.