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

merge-requests/2/head
Alex Pott 2020-07-30 11:34:40 +01:00
parent 2a02daeccb
commit 8fd13be160
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 0 additions and 2 deletions

View File

@ -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();