protected function Update350Test::setUp in Lightning Media 8.3
Same name in this branch
- 8.3 modules/lightning_media_video/tests/src/Kernel/Update350Test.php \Drupal\Tests\lightning_media_video\Kernel\Update350Test::setUp()
- 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_video/ tests/ src/ Kernel/ Update350Test.php, line 27
Class
- Update350Test
- @group lightning_media @group lightning_media_video
Namespace
Drupal\Tests\lightning_media_video\KernelCode
protected function setUp() {
parent::setUp();
$this->container
->get('module_installer')
->install([
'lightning_media_video',
]);
FieldConfig::loadByName('media', 'video', 'field_media_in_library')
->setTranslatable(TRUE)
->save();
FieldConfig::loadByName('media', 'video_file', 'field_media_in_library')
->setTranslatable(TRUE)
->save();
}