You are here

protected function LanguageSelectWidgetTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/language/tests/src/Kernel/LanguageSelectWidgetTest.php \Drupal\Tests\language\Kernel\LanguageSelectWidgetTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/language/tests/src/Kernel/LanguageSelectWidgetTest.php, line 35

Class

LanguageSelectWidgetTest
Tests the language select widget.

Namespace

Drupal\Tests\language\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('entity_test');
  $this
    ->installEntitySchema('user');
  $storage = $this->container
    ->get('entity_type.manager')
    ->getStorage('entity_form_display');
  $this->entityFormDisplay = $storage
    ->create([
    'targetEntityType' => 'entity_test',
    'bundle' => 'entity_test',
    'mode' => 'default',
    'status' => TRUE,
  ]);
}