Commit 6d90c359 authored by larowlan's avatar larowlan

Merge pull request #27 from md-systems/8.x

Update module install calls and fix dependencies
parents 7aae46bf 25b3bcc7
......@@ -45,7 +45,7 @@ class DefaultContentManagerIntegrationTest extends KernelTestBase {
* Tests exportContent().
*/
public function testExportContent() {
\Drupal::moduleHandler()->install(['taxonomy', 'default_content']);
\Drupal::service('module_installer')->install(['taxonomy', 'default_content']);
\Drupal::service('router.builder')->rebuild();
$this->defaultContentManager = \Drupal::service('default_content.manager');
......@@ -71,7 +71,7 @@ class DefaultContentManagerIntegrationTest extends KernelTestBase {
* Tests exportContentWithReferences().
*/
public function testExportWithReferences() {
\Drupal::moduleHandler()->install(['node', 'default_content']);
\Drupal::service('module_installer')->install(['node', 'default_content']);
\Drupal::service('router.builder')->rebuild();
$this->defaultContentManager = \Drupal::service('default_content.manager');
......
......@@ -38,7 +38,7 @@ class DefaultContentTest extends WebTestBase {
// Login as admin.
$this->drupalLogin($this->drupalCreateUser(array_keys(\Drupal::moduleHandler()->invokeAll(('permission')))));
// Enable the module and import the content.
\Drupal::moduleHandler()->install(array('default_content_test'), TRUE);
\Drupal::service('module_installer')->install(array('default_content_test'), TRUE);
$this->rebuildContainer();
$node = $this->drupalGetNodeByTitle('Imported node');
$this->assertEqual($node->body->value, 'Crikey it works!');
......
......@@ -14,6 +14,6 @@ default_value_function: ''
settings: { }
field_type: taxonomy_term_reference
dependencies:
entity:
config:
- field.storage.node.field_tags
- node.type.page
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