|
Lines 3462-3468
subtest 'bookings' => sub {
Link Here
|
| 3462 |
}; |
3462 |
}; |
| 3463 |
|
3463 |
|
| 3464 |
subtest 'find_booking' => sub { |
3464 |
subtest 'find_booking' => sub { |
| 3465 |
plan tests => 8; |
3465 |
plan tests => 9; |
| 3466 |
|
3466 |
|
| 3467 |
$schema->storage->txn_begin; |
3467 |
$schema->storage->txn_begin; |
| 3468 |
|
3468 |
|
|
Lines 3632-3637
subtest 'find_booking' => sub {
Link Here
|
| 3632 |
|
3632 |
|
| 3633 |
}; |
3633 |
}; |
| 3634 |
|
3634 |
|
|
|
3635 |
subtest 'test empty string warning' => sub { |
| 3636 |
plan tests => 1; |
| 3637 |
|
| 3638 |
Koha::CirculationRules->set_rules( |
| 3639 |
{ |
| 3640 |
branchcode => '*', |
| 3641 |
itemtype => $item->effective_itemtype, |
| 3642 |
rules => { |
| 3643 |
bookings_lead_period => '', |
| 3644 |
}, |
| 3645 |
} |
| 3646 |
); |
| 3647 |
|
| 3648 |
warning_is { |
| 3649 |
$found_booking = $item->find_booking( |
| 3650 |
{ |
| 3651 |
checkout_date => dt_from_string(), |
| 3652 |
due_date => dt_from_string()->add( days => 7 ), |
| 3653 |
} |
| 3654 |
); |
| 3655 |
} |
| 3656 |
undef, "No warnings were produced"; |
| 3657 |
}; |
| 3658 |
|
| 3635 |
$schema->storage->txn_rollback; |
3659 |
$schema->storage->txn_rollback; |
| 3636 |
}; |
3660 |
}; |
| 3637 |
|
3661 |
|
| 3638 |
- |
|
|