You are here

public function PreviewLinkBase::setUp in Preview Link 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/PreviewLinkBase.php \Drupal\Tests\preview_link\Kernel\PreviewLinkBase::setUp()
  2. 2.0.x tests/src/Kernel/PreviewLinkBase.php \Drupal\Tests\preview_link\Kernel\PreviewLinkBase::setUp()

Overrides EntityKernelTestBase::setUp

3 calls to PreviewLinkBase::setUp()
PreviewLinkAccessTest::setUp in tests/src/Kernel/PreviewLinkAccessTest.php
PreviewLinkExpiryTest::setUp in tests/src/Kernel/PreviewLinkExpiryTest.php
PreviewLinkStorageTest::setUp in tests/src/Kernel/PreviewLinkStorageTest.php
3 methods override PreviewLinkBase::setUp()
PreviewLinkAccessTest::setUp in tests/src/Kernel/PreviewLinkAccessTest.php
PreviewLinkExpiryTest::setUp in tests/src/Kernel/PreviewLinkExpiryTest.php
PreviewLinkStorageTest::setUp in tests/src/Kernel/PreviewLinkStorageTest.php

File

tests/src/Kernel/PreviewLinkBase.php, line 34

Class

PreviewLinkBase
Base class for preview link testing.

Namespace

Drupal\Tests\preview_link\Kernel

Code

public function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('preview_link');
  $this
    ->installConfig([
    'node',
    'filter',
  ]);
  $this
    ->createContentType([
    'type' => 'page',
  ]);
  $this->storage = $this->container
    ->get('entity_type.manager')
    ->getStorage('preview_link');
}