Unverified Commit 249d4e83 authored by alexpott's avatar alexpott

Issue #3157975 by S_Bhandari, paulocs, quietone: Remove Unused variables from Migrate Drupal module

(cherry picked from commit 8fd13be1)
parent 5679afdc
......@@ -50,7 +50,6 @@ public function testSourceProviderNotActive() {
$entity_type_manager = $this->createMock('Drupal\Core\Entity\EntityTypeManagerInterface');
$plugin = new TestDrupalSqlBase([], 'placeholder_id', $plugin_definition, $this->getMigration(), $state, $entity_type_manager);
$plugin->setDatabase($this->getDatabase($this->databaseContents));
$system_data = $plugin->getSystemData();
$this->expectException(RequirementsException::class);
$this->expectExceptionMessage('The module module1 is not enabled in the source site.');
try {
......@@ -75,7 +74,6 @@ public function testSourceDatabaseError() {
/** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager */
$entity_type_manager = $this->createMock('Drupal\Core\Entity\EntityTypeManagerInterface');
$plugin = new TestDrupalSqlBase([], 'test', $plugin_definition, $this->getMigration(), $state, $entity_type_manager);
$system_data = $plugin->getSystemData();
$this->expectException(RequirementsException::class);
$this->expectExceptionMessage('No database connection configured for source plugin test');
$plugin->checkRequirements();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment