Bug 23104: Add tests for maxonsiteissueqty
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 5b7e563f4e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
1f0c8fd9bd
commit
aeb70dd2d2
|
|
@ -661,7 +661,7 @@ subtest 'General vs specific rules limit quantity correctly' => sub {
|
|||
};
|
||||
|
||||
subtest 'empty string means unlimited' => sub {
|
||||
plan tests => 1;
|
||||
plan tests => 2;
|
||||
|
||||
Koha::CirculationRules->set_rules(
|
||||
{
|
||||
|
|
@ -670,7 +670,7 @@ subtest 'empty string means unlimited' => sub {
|
|||
itemtype => '*',
|
||||
rules => {
|
||||
maxissueqty => '',
|
||||
maxonsiteissueqty => 0,
|
||||
maxonsiteissueqty => '',
|
||||
}
|
||||
},
|
||||
);
|
||||
|
|
@ -680,6 +680,12 @@ subtest 'empty string means unlimited' => sub {
|
|||
'maxissueqty="" should mean unlimited'
|
||||
);
|
||||
|
||||
is(
|
||||
C4::Circulation::TooMany( $patron, $biblio->{biblionumber}, $item, { onsite_checkout => 1 } ),
|
||||
undef,
|
||||
'maxonsiteissueqty="" should mean unlimited'
|
||||
);
|
||||
|
||||
teardown();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue