public function testTranslationNoDuplicateEntriesAfterModification()
{
$replace = ['name' => 'John'];
Translation::translate('Hello John, how are you?', $replace, 'fr');
$translations = TranslationModel::get();
$this->assertCount(2, $translations);
$french = $translations->get(1);
$french->translation = 'Changed Translation';
$french->save();
Translation::translate('Hello John, how are you?', $replace, 'fr');
$newTranslations = TranslationModel::get();
$this->assertCount(2, $newTranslations);
$this->assertEquals('Changed Translation', $newTranslations->get(1)->translation);
}