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() {
// 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'));
}