protected function LanguageSelectWidgetTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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\KernelCode
protected function setUp() {
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,
]);
}