function HalSettingsDeletionUpdateTest::testUpdate

Ensures that update hook is run for "hal" module.

File

core/modules/hal/tests/src/Functional/Update/HalSettingsDeletionUpdateTest.php, line 26

Class

HalSettingsDeletionUpdateTest
Ensures that update hook is run properly for deleting obsolete Hal settings.

Namespace

Drupal\Tests\hal\Functional\Update

Code

public function testUpdate() {
    $hal_settings = $this->config('hal.settings');
    $this->assertFalse($hal_settings->isNew());
    $this->assertTrue($hal_settings->get('bc_file_uri_as_url_normalizer'));
    $this->runUpdates();
    $hal_settings = \Drupal::configFactory()->get('hal.settings');
    $this->assertFalse($hal_settings->isNew());
    $this->assertNull($hal_settings->get('bc_file_uri_as_url_normalizer'));
}

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