file_put_contents($this->publicFilesDirectory . '/translations/drupal-8.0.0.es.po',
$this->
getPo('es'
));
$locale_settings = Yaml::
decode(file_get_contents($this->siteDirectory . '/config/sync/locale.settings.yml'
));
$locale_settings['translation'
]['use_source'
] = 'local';
$locale_settings['translation'
]['path'
] =
$this->publicFilesDirectory . '/translations';
file_put_contents($this->siteDirectory . '/config/sync/locale.settings.yml', Yaml::
encode($locale_settings));
} /**
* Confirms that the installation installed the configuration correctly.
*/
public function testConfigSync() { $comparer =
$this->
configImporter()->
getStorageComparer();
$expected_changelist_default_collection =
[ 'create' =>
[],
// The system.mail is changed configuration because the test system
// changes it to ensure that mails are not sent.
'update' =>
['system.mail'
],
'delete' =>
[],
'rename' =>
[],
];
$this->
assertEquals($expected_changelist_default_collection,
$comparer->
getChangelist());
$expected_changelist_spanish_collection =
[ 'create' =>
[],