function TypedDataDefinitionEntityBundleTest::setUp

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/TypedData/TypedDataDefinitionEntityBundleTest.php \Drupal\KernelTests\Core\TypedData\TypedDataDefinitionEntityBundleTest::setUp()
  2. 10 core/tests/Drupal/KernelTests/Core/TypedData/TypedDataDefinitionEntityBundleTest.php \Drupal\KernelTests\Core\TypedData\TypedDataDefinitionEntityBundleTest::setUp()

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/TypedData/TypedDataDefinitionEntityBundleTest.php, line 43

Class

TypedDataDefinitionEntityBundleTest
Tests data type metadata for entity bundles.

Namespace

Drupal\KernelTests\Core\TypedData

Code

protected function setUp() : void {
  parent::setUp();
  $this->typedDataManager = $this->container
    ->get('typed_data_manager');
  $entityTypeManager = $this->container
    ->get('entity_type.manager');
  assert($entityTypeManager instanceof EntityTypeManagerInterface);
  $this->entityTestBundleStorage = $entityTypeManager->getStorage('entity_test_bundle');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.