From 9dff9cb7689438aa3961c52d2c8c707da80f145c Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@git-test.afi-sa.fr> Date: Fri, 8 Mar 2013 09:31:06 +0000 Subject: [PATCH] Correction tests export unimarc / paniers --- INSTALL | 2 +- library/Class/Notice.php | 2 +- .../modules/opac/controllers/PanierControllerTest.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/INSTALL b/INSTALL index 1321c8a5383..9a6eb583c36 100644 --- a/INSTALL +++ b/INSTALL @@ -16,7 +16,7 @@ Sauf indiqué, cette procédure prends en compte par défault les distributions pear install pear.phpunit.de/PHP_TokenStream pear install pear.phpunit.de/Text_Template pear install pear.phpunit.de/DbUnit - + pear install pear.phpunit.de/PHPUnit_Selenium * Récupération des sources diff --git a/library/Class/Notice.php b/library/Class/Notice.php index cd78b663f76..b01868850c9 100644 --- a/library/Class/Notice.php +++ b/library/Class/Notice.php @@ -253,7 +253,7 @@ class Class_Notice extends Storm_Model_Abstract { } public function setUnimarc($unimarc) { - $this->getNoticeUnimarc()->setNotice($unimarc, 0); + $this->getNoticeUnimarc()->setNotice($unimarc); return parent::setUnimarc($unimarc); } diff --git a/tests/application/modules/opac/controllers/PanierControllerTest.php b/tests/application/modules/opac/controllers/PanierControllerTest.php index bac7b033a8c..f2b39938d58 100644 --- a/tests/application/modules/opac/controllers/PanierControllerTest.php +++ b/tests/application/modules/opac/controllers/PanierControllerTest.php @@ -162,7 +162,7 @@ class PanierControllerIndexWithPanierIdFifteenTest extends PanierControllerTestC /** @test */ public function noticeMontespanShouldBeVisible() { - $this->assertXPathContentContains('//td', 'Le Montespan'); + $this->assertXPathContentContains('//td', 'Montespan (Le)'); } @@ -375,7 +375,7 @@ class PanierControllerExportUnimarcTest extends PanierControllerTestCase { /** @test */ public function bodyShouldReturnUnimarcISO2709() { - $this->assertEquals('00471nam0 22001931 450 200001400000200003200014001000800046010002800054100004100082101000800123102000700131105001800138210002600156215003800182700002200220801002200242902000700264903000600271aLe Montespan1 aMontespan (Le)fJean TeulÂe0507356 a978-2-260-01723-3d22 ? a20080612d|||| uuuy0frey0103 ba| afre aFR ay|||||||000|y aPariscJulliardd2008 a333 p.cjaq. ill. en coul.d21 cm 1aTeulÂebJean4070 0aFRbBMVc20080612 arh aG', + $this->assertEquals('00444nam0 22001811 450 0010007000000100028000071000041000351010008000761020007000841050018000912000032001092100026001412150038001677000022002058010022002279020007002499030006002560507356 a978-2-260-01723-3d22 ? a20080612d|||| uuuy0frey0103 ba| afre aFR ay|||||||000|y1 aMontespan (Le)fJean TeulÄA© aPariscJulliardd2008 a333 p.cjaq. ill. en coul.d21 cm 1aTeulÄA©bJean4070 0aFRbBMVc20080612 arh ', $this->_response->getBody()); } -- GitLab