You are here

protected function EntityBundleFieldTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/Core/Entity/EntityBundleFieldTest.php \Drupal\KernelTests\Core\Entity\EntityBundleFieldTest::setUp()
  2. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityBundleFieldTest.php \Drupal\KernelTests\Core\Entity\EntityBundleFieldTest::setUp()

File

core/tests/Drupal/KernelTests/Core/Entity/EntityBundleFieldTest.php, line 36

Class

EntityBundleFieldTest
Tests adding a custom bundle field.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installSchema('user', [
    'users_data',
  ]);
  $this
    ->installEntitySchema('entity_test_update');
  $this->moduleHandler = $this->container
    ->get('module_handler');
  $this->database = $this->container
    ->get('database');
}