You are here

protected function LibraryInclusionTranslationTest::setUp in Lightning Media 8.4

Same name in this branch
  1. 8.4 modules/lightning_media_image/tests/src/Kernel/LibraryInclusionTranslationTest.php \Drupal\Tests\lightning_media_image\Kernel\LibraryInclusionTranslationTest::setUp()
  2. 8.4 modules/lightning_media_audio/tests/src/Kernel/LibraryInclusionTranslationTest.php \Drupal\Tests\lightning_media_audio\Kernel\LibraryInclusionTranslationTest::setUp()
  3. 8.4 modules/lightning_media_twitter/tests/src/Kernel/LibraryInclusionTranslationTest.php \Drupal\Tests\lightning_media_twitter\Kernel\LibraryInclusionTranslationTest::setUp()
  4. 8.4 modules/lightning_media_video/tests/src/Kernel/LibraryInclusionTranslationTest.php \Drupal\Tests\lightning_media_video\Kernel\LibraryInclusionTranslationTest::setUp()
Same name and namespace in other branches
  1. 8.3 modules/lightning_media_video/tests/src/Kernel/LibraryInclusionTranslationTest.php \Drupal\Tests\lightning_media_video\Kernel\LibraryInclusionTranslationTest::setUp()

Overrides KernelTestBase::setUp

File

modules/lightning_media_video/tests/src/Kernel/LibraryInclusionTranslationTest.php, line 29

Class

LibraryInclusionTranslationTest
Tests translatability of field_media_in_library.

Namespace

Drupal\Tests\lightning_media_video\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this->container
    ->get('module_installer')
    ->install([
    'content_translation',
    'lightning_media_video',
  ]);
  ConfigurableLanguage::createFromLangcode('hu')
    ->save();
}