Asserts a locale translation.
int $lid: The locale source id.
string $target_langcode: The target language code.
string $expected_translation: The expected translation.
public function assertTranslation($lid, $target_langcode, $expected_translation) {
$actual_translation = \Drupal::database()
->query('SELECT * FROM {locales_target} WHERE lid = :lid AND language = :language', array(
':lid' => $lid,
':language' => $target_langcode,
))
->fetch();
$this
->assertEquals($expected_translation, $actual_translation->translation);
$this
->assertEquals(LOCALE_CUSTOMIZED, $actual_translation->customized);
}