MigrateProcessErrorMessagesTest::$definition

Same name in other branches
  1. 10 core/modules/migrate/tests/src/Kernel/MigrateProcessErrorMessagesTest.php \Drupal\Tests\migrate\Kernel\MigrateProcessErrorMessagesTest::definition

The default stub migration definition.

Type: array

File

core/modules/migrate/tests/src/Kernel/MigrateProcessErrorMessagesTest.php, line 60

Class

MigrateProcessErrorMessagesTest
Tests the format of messages from process plugin exceptions.

Namespace

Drupal\Tests\migrate\Kernel

Code

protected array $definition = [
    'id' => 'process_errors_migration',
    'idMap' => [
        'plugin' => 'idmap_prophecy',
    ],
    'source' => [
        'plugin' => 'embedded_data',
        'data_rows' => [
            [
                'id' => 1,
                'my_property' => [
                    'subfield' => [
                        42,
                    ],
                ],
            ],
        ],
        'ids' => [
            'id' => [
                'type' => 'integer',
            ],
        ],
    ],
    'process' => [
        'id' => 'id',
    ],
    'destination' => [
        'plugin' => 'dummy',
    ],
    'migration_dependencies' => [],
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.