$this->
drupalGet('admin/config/regional/language/add'
);
$this->
submitForm($edit, 'Add language'
);
// Overridden string for language-negotiation should not exist in the form.
$this->
drupalGet('admin/config/regional/language/detection/url'
);
// The language-negotiation form should be found.
$this->
assertSession()->
pageTextContains('Path prefix configuration'
);
// The English override should not be found.
$this->
assertSession()->
fieldValueNotEquals('prefix[en]',
$overridden_value_en);
// Now check the Spanish version of the page for the same thing.
$this->
drupalGet($overridden_value_es . '/admin/config/regional/language/detection/url'
);
// The language-negotiation form should be found.
$this->
assertSession()->
pageTextContains('Path prefix configuration'
);
// The Spanish override should not be found.
$this->
assertSession()->
fieldValueNotEquals('prefix[es]',
$overridden_value_es);
}}