You are here

public function DefaultNameTest::setUp in Video Embed Field 8.2

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

Overrides MediaKernelTestBase::setUp

File

modules/video_embed_media/tests/src/Kernel/DefaultNameTest.php, line 76

Class

DefaultNameTest
Test the media bundle default names.

Namespace

Drupal\Tests\video_embed_media\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'video_embed_field',
    'video_embed_media',
  ]);
  $this->entityType = $this
    ->createMediaType('video_embed_field');
  $this->plugin = $this->entityType
    ->getSource();
}