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)
81
81
->shouldHaveType (ScanInResponse::class);
82
82
}
83
83
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
+
84
96
public function it_has_requests ()
85
97
{
86
98
$ this ->requests ->shouldHaveType (Requests::class);
You can’t perform that action at this time.
0 commit comments