Skip to content
Snippets Groups Projects
Commit 19328fe0 authored by gloas's avatar gloas
Browse files

rel #9218 ajoute le nom du panier dans le resultat de recherche

parent 28782fd3
Branches
Tags
No related merge requests found
......@@ -22,7 +22,10 @@ class ZendAfi_View_Helper_TagTitreEtNombreDeResultats extends Zend_View_Helper_H
public function tagTitreEtNombreDeResultats($nombre_resultats, $criteres_recherche){
xdebug_break();
$expression_recherche = $criteres_recherche->getExpressionRecherche();
if($criteres_recherche->getPanier())
$expression_recherche = $criteres_recherche->getPanier()->getLibelle();
$html='<div class="info-recherche">';
if(!$nombre_resultats)
$html.=
......
......@@ -1166,6 +1166,12 @@ class RechercheControllerWithPanierTest extends AbstractControllerTestCase {
public function retourRechercheInitialeShouldLinkToPanierAbonne() {
$this->assertXPath('//a[contains(@href, "/panier/index/id_panier/2")]');
}
/** @test **/
public function MesBDLibelleShouldBeDisplay() {
$this->assertXPathContentContains('//span', "Mes BD",$this->_response->getBody());
}
}
......
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