You are here

protected function Update350Test::setUp in Lightning Media 8.3

Same name in this branch
  1. 8.3 modules/lightning_media_video/tests/src/Kernel/Update350Test.php \Drupal\Tests\lightning_media_video\Kernel\Update350Test::setUp()
  2. 8.3 modules/lightning_media_audio/tests/src/Kernel/Update/Update350Test.php \Drupal\Tests\lightning_media_audio\Kernel\Update\Update350Test::setUp()

Overrides KernelTestBase::setUp

File

modules/lightning_media_audio/tests/src/Kernel/Update/Update350Test.php, line 27

Class

Update350Test
@group lightning_media @group lightning_media_audio

Namespace

Drupal\Tests\lightning_media_audio\Kernel\Update

Code

protected function setUp() {
  parent::setUp();
  $this->container
    ->get('module_installer')
    ->install([
    'lightning_media_audio',
  ]);
  FieldConfig::loadByName('media', 'audio_file', 'field_media_in_library')
    ->setTranslatable(TRUE)
    ->save();
}