protected function ContentEntityFieldMethodInvocationOrderTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityFieldMethodInvocationOrderTest.php \Drupal\KernelTests\Core\Entity\ContentEntityFieldMethodInvocationOrderTest::setUp()
- 9 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityFieldMethodInvocationOrderTest.php \Drupal\KernelTests\Core\Entity\ContentEntityFieldMethodInvocationOrderTest::setUp()
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ContentEntityFieldMethodInvocationOrderTest.php, line 31
Class
- ContentEntityFieldMethodInvocationOrderTest
- Tests correct field method invocation order.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function setUp() : void {
parent::setUp();
// Enable an additional language.
ConfigurableLanguage::createFromLangcode('de')
->save();
ConfigurableLanguage::createFromLangcode('fr')
->save();
$this
->installEntitySchema('entity_test_field_methods');
$this->entityTestFieldMethodsStorage = $this->entityTypeManager
->getStorage('entity_test_field_methods');
}