Skip to content
Snippets Groups Projects
Commit e7231f2a authored by pbarroca's avatar pbarroca
Browse files

Webservice: Possibilité de recevoir l'état d'une résa depuis nanook

parent d5a39600
No related merge requests found
......@@ -186,6 +186,16 @@ class Class_WebService_SIGB_Nanook_PatronInfoReader {
$this->_getCurrentOperation()->setRang($data);
}
/**
* @param string $data
*/
public function endAvailable($data) {
if (1 == (int)$data)
$this->_currentHold->setEtat('Disponible');
}
/**
* @return Class_WebService_SIGB_ExemplaireOperation
*/
......
......@@ -167,6 +167,7 @@ class NanookFixtures {
<author>Olympe Bhêly-Quénum</author>
<locationLabel>Site Principal</locationLabel>
<priority>49</priority>
<available>1</available>
</hold>
<hold>
<bibId>19954</bibId>
......
......@@ -485,6 +485,12 @@ class NanookGetEmprunteurChristelDelpeyrouxTest extends NanookTestCase {
}
/** @test */
public function firstReservationEtasShouldBeEmpty() {
$this->assertEquals('', $this->_emprunteur->getReservationAt(0)->getEtat());
}
/** @test */
public function secondReservationIdShouldBe14586() {
$this->assertEquals('14586', $this->_emprunteur->getReservationAt(1)->getId());
......@@ -516,6 +522,12 @@ class NanookGetEmprunteurChristelDelpeyrouxTest extends NanookTestCase {
public function secondReservationRangShouldBeFourtyNine() {
$this->assertEquals('49', $this->_emprunteur->getReservationAt(1)->getRang());
}
/** @test */
public function secondReservationEtatShouldBeDisponible() {
$this->assertEquals('Disponible', $this->_emprunteur->getReservationAt(1)->getEtat());
}
}
......
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