You are here

protected function RevisionLogDefaultTest::setUp in Revision Log Default 8

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/RevisionLogDefaultTest.php, line 31

Class

RevisionLogDefaultTest
Tests the revision_log_default module.

Namespace

Drupal\Tests\revision_log_default\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'node',
  ]);
  $this
    ->installSchema('node', 'node_access');
  $type = NodeType::create([
    'type' => 'page',
    'name' => 'page',
  ]);
  $type
    ->save();
  node_add_body_field($type);
  ConfigurableLanguage::createFromLangcode('fr')
    ->save();
  $this
    ->installEntitySchema('revision_log_default_test_entity');
  $this
    ->installEntitySchema('revision_log_default_test_bundle');
}