function GlobalThemeSettingsDefaultLogoUrlUpdateTest::testUpdate

Same name in other branches
  1. 10 core/modules/system/tests/src/Functional/Update/GlobalThemeSettingsDefaultLogoUrlUpdateTest.php \Drupal\Tests\system\Functional\Update\GlobalThemeSettingsDefaultLogoUrlUpdateTest::testUpdate()

Tests update of system.theme.global:logo.url.

File

core/modules/system/tests/src/Functional/Update/GlobalThemeSettingsDefaultLogoUrlUpdateTest.php, line 37

Class

GlobalThemeSettingsDefaultLogoUrlUpdateTest
Tests update of system.theme.global:logo.url if it's still the default of "".

Namespace

Drupal\Tests\system\Functional\Update

Code

public function testUpdate() {
    $logo_url_before = $this->config('system.theme.global')
        ->get('logo.url');
    $this->assertSame('', $logo_url_before);
    $this->runUpdates();
    $logo_url_after = $this->config('system.theme.global')
        ->get('logo.url');
    $this->assertNull($logo_url_after);
}

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