Lines 2595-2601
subtest '_FixAccountForLostAndReturned returns undef if patron is deleted' => su
Link Here
|
2595 |
}; |
2595 |
}; |
2596 |
|
2596 |
|
2597 |
subtest 'Set waiting flag' => sub { |
2597 |
subtest 'Set waiting flag' => sub { |
2598 |
plan tests => 9; |
2598 |
plan tests => 11; |
2599 |
|
2599 |
|
2600 |
my $library_1 = $builder->build( { source => 'Branch' } ); |
2600 |
my $library_1 = $builder->build( { source => 'Branch' } ); |
2601 |
my $patron_1 = $builder->build( { source => 'Borrower', value => { branchcode => $library_1->{branchcode}, categorycode => $patron_category->{categorycode} } } ); |
2601 |
my $patron_1 = $builder->build( { source => 'Borrower', value => { branchcode => $library_1->{branchcode}, categorycode => $patron_category->{categorycode} } } ); |
Lines 2639-2648
subtest 'Set waiting flag' => sub {
Link Here
|
2639 |
$hold = Koha::Holds->find( $reserve_id ); |
2639 |
$hold = Koha::Holds->find( $reserve_id ); |
2640 |
is( $hold->found, undef, 'Hold is no longer marked waiting' ); |
2640 |
is( $hold->found, undef, 'Hold is no longer marked waiting' ); |
2641 |
is( $hold->priority, 1, "Hold is now priority one again"); |
2641 |
is( $hold->priority, 1, "Hold is now priority one again"); |
|
|
2642 |
is( $hold->waitingdate, undef, "Hold no longer has a waiting date"); |
2643 |
is( $hold->itemnumber, $item->{itemnumber}, "Hold has retained its' itemnumber"); |
2642 |
is( $messages->{ResFound}->{ResFound}, "Reserved", "Hold is still returned"); |
2644 |
is( $messages->{ResFound}->{ResFound}, "Reserved", "Hold is still returned"); |
2643 |
is( $messages->{ResFound}->{found}, undef, "Hold is no longer marked found in return message"); |
2645 |
is( $messages->{ResFound}->{found}, undef, "Hold is no longer marked found in return message"); |
2644 |
is( $messages->{ResFound}->{priority}, 1, "Hold is priority 1 in return message"); |
2646 |
is( $messages->{ResFound}->{priority}, 1, "Hold is priority 1 in return message"); |
2645 |
|
|
|
2646 |
}; |
2647 |
}; |
2647 |
|
2648 |
|
2648 |
subtest 'Cancel transfers on lost items' => sub { |
2649 |
subtest 'Cancel transfers on lost items' => sub { |
2649 |
- |
|
|