Skip to content
Snippets Groups Projects
Commit 2925cf88 authored by gloas's avatar gloas
Browse files

Correction test sur panier

parent 37be3c1c
Branches
Tags
No related merge requests found
......@@ -584,12 +584,12 @@ class PanierControllerAjoutAjaxNotLoggedTest extends PanierControllerTestCase {
public function setUp() {
parent::setUp();
ZendAfi_Auth::getInstance()->getStorage()->clear();
$this->dispatch('/panier/ajout-ajax/id_notice/133');
$this->dispatch('/panier/ajout-ajax/id_notice/4',true);
}
/** @test */
public function shouldRespondAuthUrl() {
$this->assertContains('opac\/auth\/ajaxlogin', $this->_response->getBody());
$this->assertContains('opac\/auth\/ajaxlogin',$this->_response->getbody());
}
/** @test */
......@@ -607,7 +607,7 @@ class PanierControllerAjoutAjaxLoggedManonWithoutPanierTest extends PanierContro
public function setUp() {
parent::setUp();
$this->manon->setPaniers([]);
$this->dispatch('/panier/ajout-ajax/id_notice/133', true);
$this->dispatch('/panier/ajout-ajax/id_notice/4', true);
$this->_xpath = new Storm_Test_XPath();
$this->_response = json_decode($this->_response->getBody());
......@@ -636,7 +636,7 @@ class PanierControllerAjoutAjaxLoggedManonWithPanierTest extends PanierControlle
public function setUp() {
parent::setUp();
$this->manon->setPaniers([Class_PanierNotice::newInstanceWithId(12, ['libelle' => 'Terminator'])]);
$this->dispatch('/panier/ajout-ajax/id_notice/133', true);
$this->dispatch('/panier/ajout-ajax/id_notice/4', true);
$this->_xpath = new Storm_Test_XPath();
$this->_response = json_decode($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