You are here

public function Update80018002Test::testUpdate in Lightning Media 8.4

Tests the update function.

File

modules/lightning_media_document/tests/src/Kernel/Update80018002Test.php, line 37

Class

Update80018002Test
Tests Lightning Media Document's update path.

Namespace

Drupal\Tests\lightning_media_document\Kernel

Code

public function testUpdate() {
  $this
    ->createMediaType('test', [
    'id' => 'document',
  ]);
  EntityViewMode::create([
    'targetEntityType' => 'media',
    'id' => 'media.thumbnail',
  ])
    ->save();
  EntityFormMode::create([
    'targetEntityType' => 'media',
    'id' => 'media.media_library',
  ])
    ->save();
  module_load_install('lightning_media_document');
  lightning_media_document_update_8001();
  lightning_media_document_update_8002();
}