function UpdateSettingsDefaultFetchUrlUpdateTest::testUpdate

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

Code

public function testUpdate() {
    $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.