function EntityViewModeValidationTest::setUp
Same name in other branches
- 10 core/tests/Drupal/KernelTests/Core/Entity/EntityViewModeValidationTest.php \Drupal\KernelTests\Core\Entity\EntityViewModeValidationTest::setUp()
Overrides ConfigEntityValidationTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityViewModeValidationTest.php, line 26
Class
- EntityViewModeValidationTest
- Tests validation of entity_view_mode entities.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function setUp() : void {
parent::setUp();
$this->installConfig('user');
$this->entity = EntityViewMode::create([
'id' => 'user.test',
'label' => 'Test',
'targetEntityType' => 'user',
]);
$this->entity
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.