Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8fd13be1
Unverified
Commit
8fd13be1
authored
Jul 30, 2020
by
Alex Pott
Browse files
Issue
#3157975
by S_Bhandari, paulocs, quietone: Remove Unused variables from Migrate Drupal module
parent
2a02daec
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php
View file @
8fd13be1
...
...
@@ -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
();
...
...
Alex Pott
@alexpott
mentioned in commit
249d4e83
·
Jul 30, 2020
mentioned in commit
249d4e83
mentioned in commit 249d4e83916fccdb6f14fe02a60b880c0bad552d
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment