protected function MigrateEntityContentBaseTest::createDestination in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentBaseTest::createDestination()
- 9 core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentBaseTest::createDestination()
Create the destination plugin to test.
Parameters
array $configuration: The plugin configuration.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEntityContentBaseTest.php, line 89
Class
- MigrateEntityContentBaseTest
- Tests the EntityContentBase destination.
Namespace
Drupal\Tests\migrate\KernelCode
protected function createDestination(array $configuration) {
$this->destination = new EntityContentBase($configuration, 'fake_plugin_id', [], $this
->createMock(MigrationInterface::class), $this->storage, [], $this->container
->get('entity_field.manager'), $this->container
->get('plugin.manager.field.field_type'), $this->container
->get('account_switcher'));
}