function MigrateEntityContentBaseTest::createDestination

Same name in other branches
  1. 8.9.x core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentBaseTest::createDestination()
  2. 10 core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php \Drupal\Tests\migrate\Kernel\MigrateEntityContentBaseTest::createDestination()
  3. 11.x 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 93

Class

MigrateEntityContentBaseTest
Tests the EntityContentBase destination.

Namespace

Drupal\Tests\migrate\Kernel

Code

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.