Skip to content
Snippets Groups Projects
Commit 584ac4f2 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #13499 : fix test failures

parent 7fcb4cc3
Branches
Tags
3 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!108Dev#13283 Export Pret Unimarc,!99Dev#13283 Export Pret Unimarc
......@@ -8,7 +8,7 @@ foreach (['message', 'error'] as $type)
?>
<?php if (isset($this->fiche['fiche'])
&& $emprunts = $this->fiche['fiche']->getEmprunts()
&& ($emprunts = $this->fiche['fiche']->getEmprunts())
&& !empty($emprunts)) {
echo $this->abonne_LoanExport();
}
......
......@@ -56,7 +56,7 @@ abstract class AbstractAbonneControllerPretsTestCase extends AbstractControllerT
class AbonneControllerPretsListTwoPretsTestCase extends AbstractAbonneControllerPretsTestCase {
abstract class AbonneControllerPretsListTwoPretsTestCase extends AbstractAbonneControllerPretsTestCase {
public function setUp() {
parent::setUp();
$potter = new Class_WebService_SIGB_Emprunt('12', new Class_WebService_SIGB_Exemplaire(123));
......@@ -173,7 +173,8 @@ class AbonneControllerPretsListTwoPretsTest extends AbonneControllerPretsListTwo
/** @test */
public function loanExportLinkShouldBePresent() {
$this->assertXPathContentContains('//a[contains(@href, "/abonne/loan-export")]',
'Export unimarc');
'Export unimarc',
$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