function MenuLinksetSettingsUpdateTest::testSystemPostUpdateLinksetSettings
Same name in other branches
- 11.x core/modules/system/tests/src/Functional/Update/MenuLinksetSettingsUpdateTest.php \Drupal\Tests\system\Functional\Update\MenuLinksetSettingsUpdateTest::testSystemPostUpdateLinksetSettings()
Tests system_post_update_linkset_settings().
File
-
core/
modules/ system/ tests/ src/ Functional/ Update/ MenuLinksetSettingsUpdateTest.php, line 30
Class
- MenuLinksetSettingsUpdateTest
- Tests creation of system linkset settings.
Namespace
Drupal\Tests\system\Functional\UpdateCode
public function testSystemPostUpdateLinksetSettings() : void {
// Ensure config is not present.
$config = $this->config('system.feature_flags');
$this->assertTrue($config->isNew());
$this->runUpdates();
// Confirm that config was created and the endpoint is disabled.
$updated_config = $this->config('system.feature_flags');
$this->assertFalse($updated_config->isNew());
$this->assertFalse($updated_config->get('linkset_endpoint'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.