public function SqlTest::setUp in Drupal 9
Overrides MigrateTestBase::setUp
File
- core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ id_map/ SqlTest.php, line 50
Class
- SqlTest
- Tests that the migrate map table is created.
Namespace
Drupal\Tests\migrate\Kernel\Plugin\id_mapCode
public function setUp() : void {
parent::setUp();
$this->database = \Drupal::database();
$this->eventDispatcher = $this
->prophesize(EventDispatcherInterface::class)
->reveal();
$this->migrationPluginManager = \Drupal::service('plugin.manager.migration');
$this->migrationDefinition = [
'id' => 'test',
'source' => [
'plugin' => 'embedded_data',
'data_rows' => [
[
'alpha' => '1',
'bravo' => '2',
'charlie' => '3',
'delta' => '4',
'echo' => '5',
],
],
'ids' => [],
],
'process' => [],
'destination' => [
'plugin' => 'null',
],
];
}