Skip to content

Commit

Permalink
Add scan-in test
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Aug 3, 2018
1 parent 1f7b118 commit 4676eb6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/Bibs/ItemSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ function it_can_be_scanned_in(AlmaClient $client, Library $library)
->shouldHaveType(ScanInResponse::class);
}

function it_can_be_scanned_in_with_params(AlmaClient $client, Library $library)
{
$client->postJSON('/bibs/990006312214702204/holdings/22163771200002204/items/23163771190002204?place_on_hold_shelf=true&op=scan&library=THAT+LIBRARY&circ_desk=OTHER_DESK')
->shouldBeCalled()
->willReturn(SpecHelper::getDummyData('scanin_transit_response.json'));

$library->code = 'THAT LIBRARY';

$this->scanIn($library, 'OTHER_DESK', ['place_on_hold_shelf' => 'true'])
->shouldHaveType(ScanInResponse::class);
}

public function it_has_requests()
{
$this->requests->shouldHaveType(Requests::class);
Expand Down

0 comments on commit 4676eb6

Please sign in to comment.