summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Hojtsy2017-10-25 15:43:24 +0200
committerGabor Hojtsy2017-10-25 15:43:24 +0200
commitccde72d3456859e2e6b5e1ca789df61f19c445d1 (patch)
tree0d9478b88224e6fb02e4a4563445d0d9ade958cd
parent2483ca130f24898ed6d01c01a6b2e98260d946eb (diff)
Issue #2914668 by Jo Fitzgerald, shashikant_chauhan, heddn, quietone: MigrateNodeDeriverTest::testNoTranslations() does not install node module
-rw-r--r--core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php
index 569582d..2b7169a 100644
--- a/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php
+++ b/core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php
@@ -19,21 +19,31 @@ class MigrateNodeDeriverTest extends MigrateDrupal7TestBase {
protected $pluginManager;
/**
+ * The module handler service.
+ *
+ * @var \Drupal\Core\Extension\ModuleHandlerInterface
+ */
+ protected $moduleHandler;
+
+ /**
* {@inheritdoc}
*/
public function setUp() {
parent::setUp();
$this->pluginManager = $this->container->get('plugin.manager.migration');
+ $this->moduleHandler = $this->container->get('module_handler');
}
/**
* Test node translation migrations with translation disabled.
*/
public function testNoTranslations() {
+ // Enabling node module for this test.
+ $this->enableModules(['node']);
// Without content_translation, there should be no translation migrations.
$migrations = $this->pluginManager->createInstances('d7_node_translation');
- $this->assertSame([], $migrations,
- "No node translation migrations without content_translation");
+ $this->assertTrue($this->moduleHandler->moduleExists('node'));
+ $this->assertEmpty($migrations);
}
/**