function 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 93 
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'));
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
