function LinkUriTest::providerTestDisablingRouteValidation
Same name in other branches
- 8.9.x core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/process/LinkUriTest.php \Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process\LinkUriTest::providerTestDisablingRouteValidation()
- 10 core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/process/LinkUriTest.php \Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process\LinkUriTest::providerTestDisablingRouteValidation()
- 11.x core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/process/LinkUriTest.php \Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\process\LinkUriTest::providerTestDisablingRouteValidation()
Provides test cases for LinkUriTest::testDisablingRouteValidation().
Return value
array An array of test cases, each which the following values:
- The value array to pass to LinkUri::transform().
- The expected path returned by LinkUri::transform().
File
-
core/
modules/ menu_link_content/ tests/ src/ Kernel/ Plugin/ migrate/ process/ LinkUriTest.php, line 158
Class
Namespace
Drupal\Tests\menu_link_content\Kernel\Plugin\migrate\processCode
public function providerTestDisablingRouteValidation() {
$tests = [];
$value = 'node/1';
$expected = 'entity:node/1';
$tests['routed'] = [
$value,
$expected,
];
$value = 'node/2';
$expected = 'base:node/2';
$tests['unrouted'] = [
$value,
$expected,
];
return $tests;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.