function CreateHalSettingsForLinkDomainUpdateTest::testHalSettingsCreated
Tests hal_update_8301().
File
-
core/
modules/ hal/ tests/ src/ Functional/ Update/ CreateHalSettingsForLinkDomainUpdateTest.php, line 30
Class
- CreateHalSettingsForLinkDomainUpdateTest
- Tests that 'hal.settings' is created, to store 'link_domain'.
Namespace
Drupal\Tests\hal\Functional\UpdateCode
public function testHalSettingsCreated() {
// Make sure we have the expected values before the update.
$hal_settings = $this->config('hal.settings');
$this->assertIdentical([], $hal_settings->getRawData());
$this->runUpdates();
// Make sure we have the expected values after the update.
$hal_settings = \Drupal::configFactory()->get('hal.settings');
$this->assertTrue(array_key_exists('link_domain', $hal_settings->getRawData()));
$this->assertIdentical(NULL, $hal_settings->getRawData()['link_domain']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.