You are here

public function MenuLinkParentTest::providerTransformException in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/process/MenuLinkParentTest.php \Drupal\Tests\migrate\Unit\process\MenuLinkParentTest::providerTransformException()

Provides data for testTransformException().

File

core/modules/migrate/tests/src/Unit/process/MenuLinkParentTest.php, line 102

Class

MenuLinkParentTest
Tests the menu link parent process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function providerTransformException() {

  // The parent ID does not for the following tests.
  return [
    'parent link external and could not be loaded' => [
      'source_value' => [
        1,
        'admin',
        'http://drupal.org',
      ],
    ],
    'parent link path/menu name not passed' => [
      'source_value' => [
        1,
        NULL,
        NULL,
      ],
    ],
    'parent link is an internal URI that does not exist' => [
      'source_value' => [
        1,
        NULL,
        'admin/structure',
      ],
    ],
  ];
}