Lines 2846-2852
subtest '_FixAccountForLostAndReturned returns undef if patron is deleted' => su
Link Here
|
2846 |
}; |
2846 |
}; |
2847 |
|
2847 |
|
2848 |
subtest 'Set waiting flag' => sub { |
2848 |
subtest 'Set waiting flag' => sub { |
2849 |
plan tests => 9; |
2849 |
plan tests => 11; |
2850 |
|
2850 |
|
2851 |
my $library_1 = $builder->build( { source => 'Branch' } ); |
2851 |
my $library_1 = $builder->build( { source => 'Branch' } ); |
2852 |
my $patron_1 = $builder->build( { source => 'Borrower', value => { branchcode => $library_1->{branchcode}, categorycode => $patron_category->{categorycode} } } ); |
2852 |
my $patron_1 = $builder->build( { source => 'Borrower', value => { branchcode => $library_1->{branchcode}, categorycode => $patron_category->{categorycode} } } ); |
Lines 2890-2899
subtest 'Set waiting flag' => sub {
Link Here
|
2890 |
$hold = Koha::Holds->find( $reserve_id ); |
2890 |
$hold = Koha::Holds->find( $reserve_id ); |
2891 |
is( $hold->found, undef, 'Hold is no longer marked waiting' ); |
2891 |
is( $hold->found, undef, 'Hold is no longer marked waiting' ); |
2892 |
is( $hold->priority, 1, "Hold is now priority one again"); |
2892 |
is( $hold->priority, 1, "Hold is now priority one again"); |
|
|
2893 |
is( $hold->waitingdate, undef, "Hold no longer has a waiting date"); |
2894 |
is( $hold->itemnumber, $item->{itemnumber}, "Hold has retained its' itemnumber"); |
2893 |
is( $messages->{ResFound}->{ResFound}, "Reserved", "Hold is still returned"); |
2895 |
is( $messages->{ResFound}->{ResFound}, "Reserved", "Hold is still returned"); |
2894 |
is( $messages->{ResFound}->{found}, undef, "Hold is no longer marked found in return message"); |
2896 |
is( $messages->{ResFound}->{found}, undef, "Hold is no longer marked found in return message"); |
2895 |
is( $messages->{ResFound}->{priority}, 1, "Hold is priority 1 in return message"); |
2897 |
is( $messages->{ResFound}->{priority}, 1, "Hold is priority 1 in return message"); |
2896 |
|
|
|
2897 |
}; |
2898 |
}; |
2898 |
|
2899 |
|
2899 |
subtest 'Cancel transfers on lost items' => sub { |
2900 |
subtest 'Cancel transfers on lost items' => sub { |
2900 |
- |
|
|