Skip to content
Snippets Groups Projects
Commit 06c3ff2c authored by gloas's avatar gloas
Browse files

Flags notice dans un panier: ajout class css 'dans_panier' au lien ajout panier

parent 2ac604f7
Branches
Tags
No related merge requests found
......@@ -24,7 +24,7 @@ $script_loader = Class_ScriptLoader::getInstance()
<?php echo $this->_('Retour à la liste') ?>
</a>
<a class="panier" href="<?php echo $this->url_panier ?>" data-popup="true" data-action="<?php echo $this->url_panier ?>">
<a class="panier <?php echo $this->notice->isInPanier() ? 'dans_panier' : ''; ?>" href="<?php echo $this->url_panier ?>" data-popup="true" data-action="<?php echo $this->url_panier ?>">
<?php echo $this->_('Ajouter au Panier') ?>
</a>
......
......@@ -1674,6 +1674,14 @@ class RechercheControllerViewNoticeWichIsInMyPanier extends AbstractControllerTe
}
/** @test **/
public function viewNoticePommeShouldContainsLinkAddToPanier() {
$this->dispatch('recherche/viewnotice/id/10',true);
$this->assertXpath('//div[@class="navigation"]/a[@class="panier dans_panier"]',$this->_response->getBody());
}
/** @test **/
public function viewNoticePommeShouldContainsTagDansPanierBd() {
$this->dispatch('recherche/viewnotice/id/10',true);
......
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