Skip to content
Snippets Groups Projects
Commit 4cb365c2 authored by Sebastien ANDRE's avatar Sebastien ANDRE
Browse files

hotline : #178102 : remove back to form in textcriteria

parent 7b8332c6
1 merge request!4805hotline : #178102 : remove back to form in textcriteria
Pipeline #24981 passed with stage
in 29 minutes and 59 seconds
- correctif #178102 : Rercherche : En en-tête de résultat de recherche avancée, 'Retour au formulaire de Recherche avancée' est présenté comme un bouton.
\ No newline at end of file
......@@ -77,4 +77,9 @@ class Intonation_View_Search_TextCriteria extends Intonation_View_Search_HtmlCri
if ($this->_current_facettes)
$this->_html .= $this->_('restreint à ');
}
}
\ No newline at end of file
protected function _addBackToSearchFormButton() : self {
return $this;
}
}
......@@ -1701,3 +1701,32 @@ class TemplatesSearchWithSerieTest extends AbstractControllerTestCase {
$this->assertXPathContentContains('//span[contains(@class, "record_serie")]', '1 sur 30');
}
}
/* hotline : https://forge.afi-sa.net/issues/178102 */
class TemplatesSearchBackToFormTest extends AbstractControllerTestCase {
public function setUp() {
parent::setUp();
$this->_buildTemplateProfil(['id' => 23]);
Zend_Registry::get('session')->searches = ['1234' => ['mode_authority_thesaurus' => '0']];
$this->dispatch('recherche/simple/form_id/advanced_form/operateur_titres/and/rech_titres/lapin/type_recherche/fulltext/tri/*/type_doc/12/post/1234/titre/Recherche+avancée');
}
/** @test */
public function backToFormShouldNotExistsInTextCriteria() {
$this->assertNotXPathContentContains('//h1[contains(@class, "content_title")]', 'Résultat titre : lapinretour au formulaire de recherche');
}
/** @test */
public function linkToBackToFormShouldExists() {
$this->assertXPathContentContains('//a[contains(@class, "back_to_search")][@href="/recherche/avancee/post/1234/form_id/advanced_form"]', 'Retour au formulaire de recherche');
}
}
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