You are here

public function PreviewLinkStorageTest::testGetPreviewLink in Preview Link 8

Test retrieving a preview link.

File

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

Class

PreviewLinkStorageTest
Preview link form test.

Namespace

Drupal\Tests\preview_link\Kernel

Code

public function testGetPreviewLink() {
  $preview_link = $this->storage
    ->createPreviewLinkForEntity($this->node);
  $retrieved_preview_link = $this->storage
    ->getPreviewLinkForEntity($this->node);
  $this
    ->assertPreviewLinkEqual($preview_link, $retrieved_preview_link);
}