You are here

public function MediaLibraryUpdate8704Test::testUpdate in Drupal 8

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'));
}