You are here

public function LinkUriTest::providerTestDisablingRouteValidation in Drupal 8

Same name and namespace in other branches
  1. 9 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:

File

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

Class

LinkUriTest
Tests \Drupal\menu_link_content\Plugin\migrate\process\LinkUri.

Namespace

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

Code

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;
}