function MenuLinkParentTest::providerTransformException
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/process/MenuLinkParentTest.php \Drupal\Tests\migrate\Unit\process\MenuLinkParentTest::providerTransformException()
- 10 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 106
Class
- MenuLinkParentTest
- Tests the menu link parent process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public static 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://example.com',
],
],
'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',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.