You are here

protected function ContentEntityFieldMethodInvocationOrderTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityFieldMethodInvocationOrderTest.php \Drupal\KernelTests\Core\Entity\ContentEntityFieldMethodInvocationOrderTest::setUp()
  2. 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\Entity

Code

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');
}