public function HalSettingsDeletionUpdateTest::testUpdate in Drupal 9
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\UpdateCode
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'));
}