From 2925cf885d3dc60035abc0790ee45df3ec8cf51b Mon Sep 17 00:00:00 2001
From: gloas <gloas@git-test.afi-sa.fr>
Date: Mon, 17 Jun 2013 14:36:37 +0000
Subject: [PATCH] Correction test sur panier

---
 .../modules/opac/controllers/PanierControllerTest.php     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/application/modules/opac/controllers/PanierControllerTest.php b/tests/application/modules/opac/controllers/PanierControllerTest.php
index d3ab0dbad94..baece07e17d 100644
--- a/tests/application/modules/opac/controllers/PanierControllerTest.php
+++ b/tests/application/modules/opac/controllers/PanierControllerTest.php
@@ -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());
-- 
GitLab