function LinkUriTest::testRoutedLegacy

Tests legacy handling for LinkUri::transform().

@dataProvider providerTestRouted @covers ::transform @expectedDeprecation Passing an array as source value into the link_uri migrate process plugin is deprecated in drupal:8.8.0. The possibility to pass an array as source value to the plugin will be removed in drupal:9.0.0. Pass a string value instead. See https://www.drupal.org/node/3043694 @group legacy

File

core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/process/LinkUriTest.php, line 65

Class

LinkUriTest
Tests <a href="/api/drupal/core%21modules%21menu_link_content%21src%21Plugin%21migrate%21process%21LinkUri.php/class/LinkUri/8.9.x" title="Generates an internal URI from the source value." class="local">\Drupal\menu_link_content\Plugin\migrate\process\LinkUri</a>.

Namespace

Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process

Code

public function testRoutedLegacy($value, $expected) {
    $this->testRouted([
        $value,
    ], $expected);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.