Skip to content
Snippets Groups Projects
Commit 184e6d10 authored by Ghislain Loas's avatar Ghislain Loas Committed by Laurent
Browse files

fix View_Helper_Abonne_ResumeAsAbonneSIGBTest::linkPretsShouldContainsTroisPretsUnRetard

parent b0f7b6e2
Branches
Tags
1 merge request!4401dev #153909 Advanced search ListeSuggestion default mode
Pipeline #16832 passed with stage
in 38 minutes and 22 seconds
......@@ -88,7 +88,7 @@ class ZendAfi_View_Helper_TagListeSuggestion
->_tag('select',
implode('', $options),
['id' => $this->_mode_name,
'onchange' => $this->_suggest_call,
'onchange' => $this->_suggest_call
]);
}
......
......@@ -29,9 +29,11 @@ class View_Helper_Abonne_ResumeAsAbonneSIGBTest extends ViewHelperTestCase {
$this->_helper->setView(new ZendAfi_Controller_Action_Helper_View());
$emprunteur = Class_WebService_SIGB_Emprunteur::nullInstance();
// Salut moi de 2024, le 15 mars 2022 on faisait tomber les masques contre le COVID 19 et ce test plantait… Alors on rajoute 2 ans pour mieux nous retrouver. À suivre …
$emprunteur
->empruntsAddAll([Class_WebService_SIGB_Emprunt::newInstanceWithEmptyExemplaire()->setDateRetour('13/03/2011'),
Class_WebService_SIGB_Emprunt::newInstanceWithEmptyExemplaire()->setDateRetour('13/03/2022')]);
Class_WebService_SIGB_Emprunt::newInstanceWithEmptyExemplaire()->setDateRetour('13/03/2024')]);
$user = Class_Users::newInstanceWithId(3,
['fiche_sigb' => ['fiche' => $emprunteur],
......@@ -83,7 +85,8 @@ class View_Helper_Abonne_ResumeAsAbonneSIGBTest extends ViewHelperTestCase {
public function linkPretsShouldContainsTroisPretsUnRetard() {
$this->assertXPathContentContains($this->_html,
'//div/a[contains(@href, "abonne/prets")]',
utf8_encode('3 prêts en cours dont 1 retard'));
utf8_encode('3 prêts en cours dont 1 retard'),
$this->_html);
}
......
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