You are here

protected function BundleEntityDuplicatorTest::setUp in Entity API 8

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/BundleEntityDuplicatorTest.php, line 44

Class

BundleEntityDuplicatorTest
Tests the bundle entity duplicator.

Namespace

Drupal\Tests\entity\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('action');
  $this->bundleEntity = EntityTestBundle::create([
    'id' => 'test',
    'label' => 'Test',
    'description' => 'This is the original description!',
  ]);
  $this->bundleEntity
    ->save();
  $this->duplicator = $this->container
    ->get('entity.bundle_entity_duplicator');
}