function MenuLinksetSettingsUpdateTest::testSystemPostUpdateLinksetSettings

Same name and namespace in other branches
  1. 10 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\Update

Code

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

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