You are here

protected function FormatterDependenciesTest::setUp in Video Embed Field 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/FormatterDependenciesTest.php \Drupal\Tests\video_embed_field\Kernel\FormatterDependenciesTest::setUp()

Overrides KernelTestBase::setUp

File

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

Class

FormatterDependenciesTest
Test the configuration dependencies are created correctly.

Namespace

Drupal\Tests\video_embed_field\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->style = ImageStyle::create([
    'name' => 'style_foo',
    'label' => $this
      ->randomString(),
  ]);
  $this->style
    ->save();
  $this->replacementStyle = ImageStyle::create([
    'name' => 'style_bar',
    'label' => $this
      ->randomString(),
  ]);
  $this->replacementStyle
    ->save();
  $this->entityTypeManager = \Drupal::entityTypeManager();
}