Lines 440-446
subtest do_checkin => sub {
Link Here
|
440 |
}; |
440 |
}; |
441 |
|
441 |
|
442 |
subtest do_checkout_with_patron_blocked => sub { |
442 |
subtest do_checkout_with_patron_blocked => sub { |
443 |
plan tests => 4; |
443 |
plan tests => 5; |
444 |
|
444 |
|
445 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
445 |
my $library = $builder->build_object( { class => 'Koha::Libraries' } ); |
446 |
my $institution = { |
446 |
my $institution = { |
Lines 495-500
subtest do_checkout_with_patron_blocked => sub {
Link Here
|
495 |
$circ = $ils->checkout($fines_patron->cardnumber, $item->barcode); |
495 |
$circ = $ils->checkout($fines_patron->cardnumber, $item->barcode); |
496 |
is( $circ->{screen_msg}, 'Patron has fines', "Got correct fines screen message" ); |
496 |
is( $circ->{screen_msg}, 'Patron has fines', "Got correct fines screen message" ); |
497 |
|
497 |
|
|
|
498 |
t::lib::Mocks::mock_preference( 'IssuingInProcess', 1 ); |
499 |
$circ = $ils->checkout($fines_patron->cardnumber, $item->barcode); |
500 |
is( $circ->{screen_msg}, '', "Patron got no fines screen message when IssuingInProcess system preference is enabled" ); |
501 |
|
498 |
my $debarred_patron = $builder->build_object( |
502 |
my $debarred_patron = $builder->build_object( |
499 |
{ |
503 |
{ |
500 |
class => 'Koha::Patrons', |
504 |
class => 'Koha::Patrons', |
501 |
- |
|
|