function EntityDuplicateTest::setUp

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php \Drupal\KernelTests\Core\Entity\EntityDuplicateTest::setUp()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php \Drupal\KernelTests\Core\Entity\EntityDuplicateTest::setUp()
  3. 10 core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php \Drupal\KernelTests\Core\Entity\EntityDuplicateTest::setUp()

Overrides EntityKernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Entity/EntityDuplicateTest.php, line 24

Class

EntityDuplicateTest
Test entity duplication.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function setUp() : void {
    parent::setUp();
    $this->installEntitySchema('entity_test_rev');
    $this->entityTestRevStorage = $this->container
        ->get('entity_type.manager')
        ->getStorage('entity_test_rev');
}

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