You are here

public function Update8020Test::testUpdate in Lightning Media 8.3

Tests Lightning Media's 8020 update hook.

File

tests/src/Kernel/Update/Update8020Test.php, line 26

Class

Update8020Test
Tests Lightning Media's 8020 update hook.

Namespace

Drupal\Tests\lightning_media\Kernel\Update

Code

public function testUpdate() {
  $setting = $this
    ->config('lightning_media.settings')
    ->get('entity_browser.override_widget');
  $this
    ->assertNull($setting);
  module_load_install('lightning_media');
  lightning_media_update_8020();
  $setting = $this
    ->config('lightning_media.settings')
    ->get('entity_browser.override_widget');
  $this
    ->assertTrue($setting);
}