function AdminThemeUpdateTest::testUpdateHookN

Tests that system.theme:admin is updated as expected.

File

core/modules/system/tests/src/Functional/Update/AdminThemeUpdateTest.php, line 33

Class

AdminThemeUpdateTest
Tests system.theme:admin is updated.

Namespace

Drupal\Tests\system\Functional\Update

Code

public function testUpdateHookN() {
    $this->assertSame('0', $this->config('system.theme')
        ->get('admin'));
    $this->runUpdates();
    $this->assertSame('', $this->config('system.theme')
        ->get('admin'));
}

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