Skip to content
Snippets Groups Projects
Commit 55adcd79 authored by llaffont's avatar llaffont
Browse files

Test liens popup pour les ajouts paniers

parent 6325b7cb
Branches
Tags
No related merge requests found
......@@ -1168,6 +1168,8 @@ class RechercheControllerGuideeThesaurusTest extends RechercheControllerGuideeH
}
class RechercheControllerAjoutNoticePanierUrlWithMurConfigTest extends RechercheControllerSimpleActionhListeFormatTestCase {
protected $_liste_format = Class_Systeme_ModulesAppli::LISTE_FORMAT_MUR;
......@@ -1201,7 +1203,13 @@ class RechercheControllerAjoutNoticePanierUrlWithMurConfigTest extends Recherche
/** @test */
public function withOutLoggedUserPopupLoginShouldBeInitialized() {
$this->assertXPathContentContains('//script', 'noticeMurPanier');
$this->assertXPathContentContains('//script', 'initializePopups', $this->_response->getBody());
}
/** @test */
public function linksAjoutPanierShouldHaveDataPopupTrue() {
$this->assertXPath('//a[contains(@href, "/panier/ajout-ajax/id_notice/")][@data-popup="true"]');
}
}
?>
\ No newline at end of file
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