public function LinkUriTest::testRouted in Drupal 8
Same name and namespace in other branches
- 9 core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/process/LinkUriTest.php \Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process\LinkUriTest::testRouted()
Tests LinkUri::transform().
@dataProvider providerTestRouted
@covers ::transform
Parameters
string $value: The value to pass to LinkUri::transform().
string $expected: The expected return value of LinkUri::transform().
1 call to LinkUriTest::testRouted()
- LinkUriTest::testRoutedLegacy in core/
modules/ menu_link_content/ tests/ src/ Kernel/ Plugin/ migrate/ process/ LinkUriTest.php - Tests legacy handling for LinkUri::transform().
File
- core/
modules/ menu_link_content/ tests/ src/ Kernel/ Plugin/ migrate/ process/ LinkUriTest.php, line 52
Class
Namespace
Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\processCode
public function testRouted($value, $expected) {
$actual = $this
->doTransform($value);
$this
->assertSame($expected, $actual);
}