Skip to content
Snippets Groups Projects
Commit 0045ecb6 authored by Laurent's avatar Laurent
Browse files

dev #81899 fix missing title param

parent 34b085b1
Branches
Tags
2 merge requests!3297WIP: Master,!2924Dev#81899 pairing fiche auteur
Pipeline #5602 passed with stage
in 32 minutes and 33 seconds
......@@ -203,7 +203,8 @@ class Class_CodifAuteur_Description {
$replace []= $view->tag('a',
$record_title,
['href' => $base_url . $record->getId(),
'title' => $this->_('Accéder au document %s')]);
'title' => $this->_('Accéder au document: %s',
$record_title)]);
}
return str_ireplace($search, $replace, $biography);
......
......@@ -162,7 +162,8 @@ class AuthorPageViewByIdTest extends AuthorPageTestCase {
/** @test */
public function biographyTextLesMiserablesShouldBeReplacedByLinkToRecord() {
$this->assertXPathContentContains('//div[@class="biography"]//a[contains(@href, "/recherche/viewnotice/code_rebond/A2408/id/9")]', 'Les Misérables');
$this->assertXPathContentContains('//div[@class="biography"]//a[contains(@href, "/recherche/viewnotice/code_rebond/A2408/id/9")][@title="Accéder au document: Les Misérables"]',
'Les Misérables');
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment