function NavigationContentLinksTest::setUp

Overrides KernelTestBase::setUp

File

core/modules/navigation/tests/src/Kernel/NavigationContentLinksTest.php, line 45

Class

NavigationContentLinksTest
Tests \Drupal\navigation\NavigationContentLinks.

Namespace

Drupal\Tests\navigation\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('node');
  $this->installConfig([
    'node',
    'file',
  ]);
  $this->createContentType([
    'type' => 'article',
  ]);
  $this->createContentType([
    'type' => 'blog',
  ]);
  $this->createContentType([
    'type' => 'landing_page',
  ]);
  $this->installEntitySchema('media');
  $this->createMediaType('test', [
    'id' => 'document',
    'label' => 'Document',
  ]);
  $this->createMediaType('test', [
    'id' => 'image',
    'label' => 'Image',
  ]);
  $this->createMediaType('test', [
    'id' => 'special',
    'label' => 'Special',
  ]);
}

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