You are here

public function Update8021Test::testUpdate in Lightning Media 8.3

Tests Lightning Media's 8021 update hook.

File

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

Class

Update8021Test
Tests Lightning Media's 8021 update hook.

Namespace

Drupal\Tests\lightning_media\Kernel\Update

Code

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