Issue #3157975 by S_Bhandari, paulocs, quietone: Remove Unused variables from Migrate Drupal module
parent
2a02daeccb
commit
8fd13be160
|
@ -50,7 +50,6 @@ class DrupalSqlBaseTest extends MigrateTestCase {
|
||||||
$entity_type_manager = $this->createMock('Drupal\Core\Entity\EntityTypeManagerInterface');
|
$entity_type_manager = $this->createMock('Drupal\Core\Entity\EntityTypeManagerInterface');
|
||||||
$plugin = new TestDrupalSqlBase([], 'placeholder_id', $plugin_definition, $this->getMigration(), $state, $entity_type_manager);
|
$plugin = new TestDrupalSqlBase([], 'placeholder_id', $plugin_definition, $this->getMigration(), $state, $entity_type_manager);
|
||||||
$plugin->setDatabase($this->getDatabase($this->databaseContents));
|
$plugin->setDatabase($this->getDatabase($this->databaseContents));
|
||||||
$system_data = $plugin->getSystemData();
|
|
||||||
$this->expectException(RequirementsException::class);
|
$this->expectException(RequirementsException::class);
|
||||||
$this->expectExceptionMessage('The module module1 is not enabled in the source site.');
|
$this->expectExceptionMessage('The module module1 is not enabled in the source site.');
|
||||||
try {
|
try {
|
||||||
|
@ -75,7 +74,6 @@ class DrupalSqlBaseTest extends MigrateTestCase {
|
||||||
/** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager */
|
/** @var \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager */
|
||||||
$entity_type_manager = $this->createMock('Drupal\Core\Entity\EntityTypeManagerInterface');
|
$entity_type_manager = $this->createMock('Drupal\Core\Entity\EntityTypeManagerInterface');
|
||||||
$plugin = new TestDrupalSqlBase([], 'test', $plugin_definition, $this->getMigration(), $state, $entity_type_manager);
|
$plugin = new TestDrupalSqlBase([], 'test', $plugin_definition, $this->getMigration(), $state, $entity_type_manager);
|
||||||
$system_data = $plugin->getSystemData();
|
|
||||||
$this->expectException(RequirementsException::class);
|
$this->expectException(RequirementsException::class);
|
||||||
$this->expectExceptionMessage('No database connection configured for source plugin test');
|
$this->expectExceptionMessage('No database connection configured for source plugin test');
|
||||||
$plugin->checkRequirements();
|
$plugin->checkRequirements();
|
||||||
|
|
Loading…
Reference in New Issue