Skip to content
Snippets Groups Projects
Commit 45136785 authored by Laurent's avatar Laurent
Browse files

dev #48981 fix test failure

parent 5f9615cb
3 merge requests!2080Sandbox detach zf from storm,!1940Dev#48981 3455 lier des cartes via bokeh,!1929Dev#48981 3455 lier des cartes via bokeh
......@@ -40,16 +40,19 @@ class ReservationsTableTest extends ViewHelperTestCase {
$le_marche->setEtat('Disponible');
$emprunteur = new Class_WebService_SIGB_Emprunteur('1234', 'Estelle');
$user = Class_Users::newInstanceWithId('123456', ['nom' => 'Estelle'])
$emprunteur->reservationsAddAll([$harry_potter, $le_marche]);
$user = Class_Users::newInstanceWithId('123456',
['nom' => 'Estelle',
'role_level' => ZendAfi_Acl_AdminControllerRoles::ABONNE_SIGB])
->setFicheSigb(['fiche' => $emprunteur]);
ZendAfi_Auth::getInstance()->logUser($user);
$emprunteur->reservationsAddAll([$harry_potter, $le_marche]);
$helper = new ZendAfi_View_Helper_Abonne_ReservationsTable();
$helper->setView(new ZendAfi_Controller_Action_Helper_View());
$this->_html = $helper->abonne_ReservationsTable($emprunteur->getReservations(), $user->getFicheSigb());
$cards = new Class_User_Cards($user);
$this->_html = $helper->abonne_ReservationsTable($cards->getHolds(), $user->getFicheSigb());
}
......
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