You are here

public function AliasLinkEnhancerTest::testUndoTransform in Gatsby Live Preview & Incremental Builds 2.0.x

Same name and namespace in other branches
  1. 8 modules/gatsby_extras/tests/src/Kernel/AliasLinkEnhancerTest.php \Drupal\Tests\gatsby_extras\Kernel\AliasLinkEnhancerTest::testUndoTransform()

Test undoTransform.

File

modules/gatsby_extras/tests/src/Kernel/AliasLinkEnhancerTest.php, line 88

Class

AliasLinkEnhancerTest
Defines a test for AliasLinkEnhancer.

Namespace

Drupal\Tests\gatsby_extras\Kernel

Code

public function testUndoTransform() {
  $output = $this->enhancer
    ->undoTransform([
    'uri' => 'entity:taxonomy_term/' . $this->term
      ->id(),
  ]);
  $this
    ->assertEquals($this->pathAlias
    ->getAlias(), $output['uri_alias']);
}