You are here

public function PreviewLinkStorageTest::setUp in Preview Link 8

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

Overrides PreviewLinkBase::setUp

File

tests/src/Kernel/PreviewLinkStorageTest.php, line 32

Class

PreviewLinkStorageTest
Preview link form test.

Namespace

Drupal\Tests\preview_link\Kernel

Code

public function setUp() {
  parent::setUp();
  $this->node = $this
    ->createNode();
  $this->storage = $this->container
    ->get('entity_type.manager')
    ->getStorage('preview_link');
}