function ContentEntityFieldMethodInvocationOrderTest::setUp
Overrides EntityKernelTestBase::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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.