function MediaLibraryUpdate8704Test::testUpdate

Tests that the update creates the media_library.settings config object.

File

core/modules/media_library/tests/src/Functional/Update/MediaLibraryUpdate8704Test.php, line 31

Class

MediaLibraryUpdate8704Test
Tests update path to create the media_library.settings config object.

Namespace

Drupal\Tests\media_library\Functional\Update

Code

public function testUpdate() {
    $this->assertNull($this->config('media_library.settings')
        ->get('advanced_ui'));
    $this->runUpdates();
    $this->assertTrue($this->config('media_library.settings')
        ->get('advanced_ui'));
}

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