@@ -172,7 +169,7 @@ public static function validateUriElement($element, FormStateInterface $form_sta
}
if($disallowed){
$form_state->setError($element,t("The path '@link_path' is either invalid or you do not have access to it.",['@link_path'=>static::getUriAsDisplayableString($uri)]));
$form_state->setError($element,t("The path '@link_path' is invalid.",['@link_path'=>static::getUriAsDisplayableString($uri)]));
$this->assertRaw(t("The path '@link_path' is either invalid or you do not have access to it.",array('@link_path'=>$link_path)),'Menu link was not created');
if($type==='access'){
$this->assertRaw(t("The path '@link_path' is inaccessible.",array('@link_path'=>$link_path)),'Menu link was not created');
}
else{
$this->assertRaw(t("The path '@link_path' is invalid.",array('@link_path'=>$link_path)),'Menu link was not created');