protected function RevisionBasicUITest::setUp in Entity API 8.0
Same name and namespace in other branches
- 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\KernelCode
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();
}