// Ensure that dependencies can be added during module installation by
// hooks.
$this->
assertSame('config_install_dependency_test',
$entity->
getDependencies()['module'
][0
]);
} /**
* Tests imported configuration entities with/without language information.
*/
public function testLanguage() { $this->
installModules(['config_test_language'
]);
// Test imported configuration with implicit language code.
$storage =
new InstallStorage();
$data =
$storage->
read('config_test.dynamic.dotted.english'
);
$this->
assertTrue(!
isset($data['langcode'
]));
$this->
assertEquals('en',
$this->
config('config_test.dynamic.dotted.english'
)->
get('langcode'
));
// Test imported configuration with explicit language code.
$data =
$storage->
read('config_test.dynamic.dotted.french'
);
$this->
assertEquals('fr',
$data['langcode'
]);
$this->
assertEquals('fr',
$this->
config('config_test.dynamic.dotted.french'
)->
get('langcode'
));
} /**
* Tests installing configuration where the filename and ID do not match.
*/