public function AliasLinkEnhancerTest::testUndoTransform in Gatsby Live Preview & Incremental Builds 8
Same name and namespace in other branches
- 2.0.x 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\KernelCode
public function testUndoTransform() {
$output = $this->enhancer
->undoTransform([
'uri' => 'entity:taxonomy_term/' . $this->term
->id(),
]);
$this
->assertEquals($this->pathAlias
->getAlias(), $output['uri_alias']);
}