Update core 8.3.0

This commit is contained in:
Rob Davies 2017-04-13 15:53:35 +01:00
parent da7a7918f8
commit cd7a898e66
6144 changed files with 132297 additions and 87747 deletions

View file

@ -6,6 +6,7 @@ use Drupal\Core\Config\FileStorage;
use Drupal\Core\Config\InstallStorage;
use Drupal\Core\Config\StorageInterface;
use Drupal\KernelTests\AssertConfigTrait;
use Drupal\KernelTests\FileSystemModuleDiscoveryDataProviderTrait;
use Drupal\KernelTests\KernelTestBase;
/**
@ -16,6 +17,7 @@ use Drupal\KernelTests\KernelTestBase;
class DefaultConfigTest extends KernelTestBase {
use AssertConfigTrait;
use FileSystemModuleDiscoveryDataProviderTrait;
/**
* {@inheritdoc}
@ -30,7 +32,7 @@ class DefaultConfigTest extends KernelTestBase {
/**
* The following config entries are changed on module install.
*
* Compare them does not make sense.
* Comparing them does not make sense.
*
* @todo Figure out why simpletest.settings is not installed.
*
@ -61,7 +63,7 @@ class DefaultConfigTest extends KernelTestBase {
/**
* Tests if installed config is equal to the exported config.
*
* @dataProvider providerTestModuleConfig
* @dataProvider coreModuleListDataProvider
*/
public function testModuleConfig($module) {
// System and user are required in order to be able to install some of the
@ -86,7 +88,7 @@ class DefaultConfigTest extends KernelTestBase {
}
// Work out any additional modules and themes that need installing to create
// and optional config.
// an optional config.
$optional_config_storage = new FileStorage($module_path . InstallStorage::CONFIG_OPTIONAL_DIRECTORY, StorageInterface::DEFAULT_COLLECTION);
$modules_to_install = [$module];
$themes_to_install = [];
@ -142,24 +144,4 @@ class DefaultConfigTest extends KernelTestBase {
}
}
/**
* Test data provider for ::testModuleConfig().
*
* @return array
* An array of module names to test.
*/
public function providerTestModuleConfig() {
$module_dirs = array_keys(iterator_to_array(new \FilesystemIterator(__DIR__ . '/../../../../modules/')));
$module_names = array_map(function($path) {
return str_replace(__DIR__ . '/../../../../modules/', '', $path);
}, $module_dirs);
$modules_keyed = array_combine($module_names, $module_names);
$data = array_map(function ($module) {
return [$module];
}, $modules_keyed);
return $data;
}
}