You are here

protected function MediaHelperTest::setUp in Lightning Media 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/MediaHelperTest.php \Drupal\Tests\lightning_media\Kernel\MediaHelperTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/MediaHelperTest.php, line 38

Class

MediaHelperTest
@group lightning_media

Namespace

Drupal\Tests\lightning_media\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('file');
  FieldStorageConfig::create([
    'entity_type' => 'media',
    'type' => 'boolean',
    'field_name' => 'field_media_in_library',
  ])
    ->save();
}