Mercurial > hg > isophonics-drupal-site
comparison core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
79 $module_path = drupal_get_path('module', $module) . '/'; | 79 $module_path = drupal_get_path('module', $module) . '/'; |
80 | 80 |
81 /** @var \Drupal\Core\Extension\ModuleInstallerInterface $module_installer */ | 81 /** @var \Drupal\Core\Extension\ModuleInstallerInterface $module_installer */ |
82 $module_installer = $this->container->get('module_installer'); | 82 $module_installer = $this->container->get('module_installer'); |
83 | 83 |
84 // @todo https://www.drupal.org/node/2308745 Rest has an implicit dependency | |
85 // on the Node module remove once solved. | |
86 if (in_array($module, ['rest', 'hal'])) { | |
87 $module_installer->install(['node']); | |
88 } | |
89 | |
90 // Work out any additional modules and themes that need installing to create | 84 // Work out any additional modules and themes that need installing to create |
91 // an optional config. | 85 // an optional config. |
92 $optional_config_storage = new FileStorage($module_path . InstallStorage::CONFIG_OPTIONAL_DIRECTORY, StorageInterface::DEFAULT_COLLECTION); | 86 $optional_config_storage = new FileStorage($module_path . InstallStorage::CONFIG_OPTIONAL_DIRECTORY, StorageInterface::DEFAULT_COLLECTION); |
93 $modules_to_install = [$module]; | 87 $modules_to_install = [$module]; |
94 $themes_to_install = []; | 88 $themes_to_install = []; |