public function DrushTest::setUp in Migrate Tools 8.5
Same name and namespace in other branches
- 8.4 tests/src/Kernel/DrushTest.php \Drupal\Tests\migrate_tools\Kernel\DrushTest::setUp()
Overrides MigrateTestBase::setUp
File
- tests/
src/ Kernel/ DrushTest.php, line 75
Class
- DrushTest
- Tests for the Drush 9 commands.
Namespace
Drupal\Tests\migrate_tools\KernelCode
public function setUp() : void {
parent::setUp();
$this
->installConfig('migrate_plus');
$this
->installConfig('migrate_tools_test');
$this
->installEntitySchema('taxonomy_term');
$this
->installEntitySchema('user');
$this
->installSchema('system', [
'key_value',
'key_value_expire',
]);
$this
->installSchema('user', [
'users_data',
]);
$this->migrationPluginManager = $this->container
->get('plugin.manager.migration');
$this->logger = $this->container
->get('logger.channel.migrate_tools');
$this->commands = new MigrateToolsCommands($this->migrationPluginManager, $this->container
->get('date.formatter'), $this->container
->get('entity_type.manager'), $this->container
->get('keyvalue'));
$this->commands
->setLogger($this->logger);
}