$config->
set('translation.default_filename', '%project-%version.%language._po'
)->
save();
// Set the test conditions.
$edit =
[ 'use_source' => LOCALE_TRANSLATION_USE_SOURCE_LOCAL,
];
$this->
drupalGet('admin/config/regional/translate/settings'
);
$this->
submitForm($edit, 'Save configuration'
);
// Get status of translation sources at local file system.
$this->
drupalGet('admin/reports/translations/check'
);
$result =
locale_translation_get_status();
$this->
assertEquals(LOCALE_TRANSLATION_LOCAL,
$result['contrib_module_one'
]['de'
]->type, 'Translation of contrib_module_one found'
);
$this->
assertEquals($this->timestampOld,
$result['contrib_module_one'
]['de'
]->timestamp, 'Translation timestamp found'
);
$this->
assertEquals(LOCALE_TRANSLATION_LOCAL,
$result['contrib_module_two'
]['de'
]->type, 'Translation of contrib_module_two found'
);
$this->
assertEquals($this->timestampNew,
$result['contrib_module_two'
]['de'
]->timestamp, 'Translation timestamp found'
);
$this->
assertEquals(LOCALE_TRANSLATION_LOCAL,
$result['locale_test'
]['de'
]->type, 'Translation of locale_test found'
);
$this->
assertEquals(LOCALE_TRANSLATION_LOCAL,
$result['custom_module_one'
]['de'
]->type, 'Translation of custom_module_one found'
);
// Set the test conditions.
$edit =
[ 'use_source' => LOCALE_TRANSLATION_USE_SOURCE_REMOTE_AND_LOCAL,
];