You are here

protected function RevisionBasicUITest::setUp in Entity API 8.0

Same name and namespace in other branches
  1. 8 tests/src/Kernel/RevisionBasicUITest.php \Drupal\Tests\entity\Kernel\RevisionBasicUITest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/RevisionBasicUITest.php, line 30
Contains \Drupal\Tests\entity\Kernel\RevisionBasicUITest.

Class

RevisionBasicUITest
@group entity

Namespace

Drupal\Tests\entity\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('entity_test_enhanced');
  $this
    ->installSchema('system', 'router');
  $bundle = EnhancedEntityBundle::create([
    'id' => 'default',
    'label' => 'Default',
  ]);
  $bundle
    ->save();
  \Drupal::service('router.builder')
    ->rebuild();
}