File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,18 @@ function it_can_be_scanned_in(AlmaClient $client, Library $library)
8181 ->shouldHaveType (ScanInResponse::class);
8282 }
8383
84+ function it_can_be_scanned_in_with_params (AlmaClient $ client , Library $ library )
85+ {
86+ $ client ->postJSON ('/bibs/990006312214702204/holdings/22163771200002204/items/23163771190002204?place_on_hold_shelf=true&op=scan&library=THAT+LIBRARY&circ_desk=OTHER_DESK ' )
87+ ->shouldBeCalled ()
88+ ->willReturn (SpecHelper::getDummyData ('scanin_transit_response.json ' ));
89+
90+ $ library ->code = 'THAT LIBRARY ' ;
91+
92+ $ this ->scanIn ($ library , 'OTHER_DESK ' , ['place_on_hold_shelf ' => 'true ' ])
93+ ->shouldHaveType (ScanInResponse::class);
94+ }
95+
8496 public function it_has_requests ()
8597 {
8698 $ this ->requests ->shouldHaveType (Requests::class);
You can’t perform that action at this time.
0 commit comments