Bug 41449: Reserves.t - fix description and assumption for onshelfholds
Test plan: prove t/db_dependent/Reserves.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
parent
004fa61755
commit
2d9c05c4c0
|
|
@ -1517,9 +1517,15 @@ subtest 'IsAvailableForItemLevelRequest() tests' => sub {
|
|||
value => { itemtype => $item_type }
|
||||
}
|
||||
);
|
||||
Koha::CirculationRules->set_rules(
|
||||
{
|
||||
categorycode => '*', itemtype => '*', branchcode => '*',
|
||||
rules => { onshelfholds => 1 }
|
||||
}
|
||||
);
|
||||
ok(
|
||||
C4::Reserves::IsAvailableForItemLevelRequest( $item, $patron ),
|
||||
"Item not available for item-level hold because no effective item type"
|
||||
"Item available for item-level hold because defined effective item type"
|
||||
);
|
||||
|
||||
Koha::CirculationRules->set_rules(
|
||||
|
|
|
|||
Loading…
Reference in New Issue