function MenuLinkParentTest::providerLookupMigrations
Provides data for testLookupMigrations().
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ MenuLinkParentTest.php, line 321
Class
- MenuLinkParentTest
- Tests the menu link parent process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public static function providerLookupMigrations() : array {
return [
'default configuration' => [
'plid' => 1,
'configuration' => [],
'expected_result' => 'menu_link_content:this_migration',
],
'some migration' => [
'plid' => 2,
'configuration' => [
'lookup_migrations' => [
'some_migration',
'another_migration',
],
],
'expected_result' => 'menu_link_content:some_migration',
],
'another migration' => [
'plid' => 3,
'configuration' => [
'lookup_migrations' => [
'some_migration',
'another_migration',
],
],
'expected_result' => 'menu_link_content:another_migration',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.