protected function MigrateEntityContentBaseTest::createDestination in Drupal 9
Same name and namespace in other branches
- 8 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.
2 calls to MigrateEntityContentBaseTest::createDestination()
- MigrateEntityContentBaseTest::testStubRows in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEntityContentBaseTest.php - Tests stub rows.
- MigrateEntityContentBaseTest::testTranslated in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEntityContentBaseTest.php - Tests importing and rolling back translated entities.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEntityContentBaseTest.php, line 87
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'));
}