public function ConfigReverterTest::importProvider in Configuration Update Manager 8
Data provider for self:testImport().
File
- tests/
src/ Unit/ ConfigReverterTest.php, line 135
Class
- ConfigReverterTest
- Tests the \Drupal\config_update\ConfigReverter class.
Namespace
Drupal\Tests\config_update\UnitCode
public function importProvider() {
return [
// Elements: type, name, config name, return value,
// config to set up before, config expected after. See also
// getFromExtensionProvider().
[
'system.simple',
'in.extension',
'in.extension',
TRUE,
[
'in.extension' => 'before',
],
[
'in.extension' => 'extension',
'_core' => 'core_for_in.extension',
],
],
[
'foo',
'one',
'foo.bar.one',
TRUE,
[
'foo.bar.one' => 'before',
'id' => 'one',
],
[
'foo.bar.one' => 'extension',
'id' => 'one',
'_core' => 'core_for_foo.bar.one',
],
],
[
'system.simple',
'in.both',
'in.both',
TRUE,
[
'in.both' => 'before',
],
[
'in.both' => 'extension',
'_core' => 'core_for_in.both',
],
],
[
'system.simple',
'in.optional',
'in.optional',
TRUE,
[
'in.optional' => 'before',
],
[
'in.optional' => 'optional',
'_core' => 'core_for_in.optional',
],
],
[
'unknown',
'in.extension',
FALSE,
FALSE,
FALSE,
FALSE,
],
[
'system.simple',
'missing2',
'missing2',
FALSE,
FALSE,
FALSE,
],
];
}