protected function MediaHelperTest::setUp in Lightning Media 8.3
Same name and namespace in other branches
- 8.4 tests/src/Kernel/MediaHelperTest.php \Drupal\Tests\lightning_media\Kernel\MediaHelperTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ MediaHelperTest.php, line 41
Class
- MediaHelperTest
- Contains unit-level test coverage of MediaHelper.
Namespace
Drupal\Tests\lightning_media\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('file');
FieldStorageConfig::create([
'entity_type' => 'media',
'type' => 'boolean',
'field_name' => 'field_media_in_library',
])
->save();
}