public function SettingsTest::testGetInstance in Drupal 9
Same name and namespace in other branches
- 8 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 65
Class
- SettingsTest
- @coversDefaultClass \Drupal\Core\Site\Settings @runTestsInSeparateProcesses @group Site
Namespace
Drupal\Tests\Core\SiteCode
public function testGetInstance() {
$singleton = $this->settings
->getInstance();
$this
->assertEquals($singleton, $this->settings);
}