function EntityBundleEntityTest::setUp

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Entity/EntityBundleEntityTest.php \Drupal\KernelTests\Core\Entity\EntityBundleEntityTest::setUp()

Overrides EntityKernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Entity/EntityBundleEntityTest.php, line 32

Class

EntityBundleEntityTest
Tests the getBundleEntity() method.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('entity_test');
  $this->installEntitySchema('entity_test_with_bundle');
  $this->installEntitySchema('entity_test_no_bundle_with_label');
}

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