You are here

public function MediaTypeTest::setUp in Lightning Media 8

Same name and namespace in other branches
  1. 8.4 tests/src/Kernel/MediaTypeTest.php \Drupal\Tests\lightning_media\Kernel\MediaTypeTest::setUp()
  2. 8.2 tests/src/Kernel/MediaTypeTest.php \Drupal\Tests\lightning_media\Kernel\MediaTypeTest::setUp()
  3. 8.3 tests/src/Kernel/MediaTypeTest.php \Drupal\Tests\lightning_media\Kernel\MediaTypeTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/MediaTypeTest.php, line 35

Class

MediaTypeTest
Tests of API-level Lightning functionality related to media types.

Namespace

Drupal\Tests\lightning_media\Kernel

Code

public function setUp() {
  parent::setUp();
  Config::forModule('lightning_media')
    ->getEntity('field_storage_config', 'media.field_media_in_library')
    ->save();
}