function UpdateSettingsDefaultFetchUrlUpdateTest::testUpdate
Same name in other branches
- 11.x core/modules/update/tests/src/Functional/Update/UpdateSettingsDefaultFetchUrlUpdateTest.php \Drupal\Tests\update\Functional\Update\UpdateSettingsDefaultFetchUrlUpdateTest::testUpdate()
Tests update of update.settings:fetch.url.
File
-
core/
modules/ update/ tests/ src/ Functional/ Update/ UpdateSettingsDefaultFetchUrlUpdateTest.php, line 102
Class
- UpdateSettingsDefaultFetchUrlUpdateTest
- Tests update of update.settings:fetch.url if it's still the default of "".
Namespace
Drupal\Tests\update\Functional\UpdateCode
public function testUpdate() : void {
$fetch_url_before = $this->config('update.settings')
->get('fetch.url');
$this->assertSame('', $fetch_url_before);
$this->runUpdates();
$fetch_url_after = $this->config('update.settings')
->get('fetch.url');
$this->assertNull($fetch_url_after);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.