You are here

public function ProvidedFieldsTest::setUp in Video Embed Field 8.2

Same name and namespace in other branches
  1. 8 modules/video_embed_media/tests/src/Kernel/ProvidedFieldsTest.php \Drupal\Tests\video_embed_media\Kernel\ProvidedFieldsTest::setup()

Overrides MediaKernelTestBase::setUp

File

modules/video_embed_media/tests/src/Kernel/ProvidedFieldsTest.php, line 117

Class

ProvidedFieldsTest
Test the provided fields.

Namespace

Drupal\Tests\video_embed_media\Kernel

Code

public function setUp() {
  parent::setUp();
  $this->entityType = $this
    ->createMediaType('video_embed_field');
  $this->plugin = $this->entityType
    ->getSource();
  $dir = 'public://video_thumbnails';
  $this->container
    ->get('file_system')
    ->prepareDirectory($dir, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS);
}