Lines 2909-2915
subtest '_FixAccountForLostAndFound returns undef if patron is deleted' => sub {
Link Here
|
2909 |
}; |
2909 |
}; |
2910 |
|
2910 |
|
2911 |
subtest 'Set waiting flag' => sub { |
2911 |
subtest 'Set waiting flag' => sub { |
2912 |
plan tests => 9; |
2912 |
plan tests => 11; |
2913 |
|
2913 |
|
2914 |
my $library_1 = $builder->build( { source => 'Branch' } ); |
2914 |
my $library_1 = $builder->build( { source => 'Branch' } ); |
2915 |
my $patron_1 = $builder->build( { source => 'Borrower', value => { branchcode => $library_1->{branchcode}, categorycode => $patron_category->{categorycode} } } ); |
2915 |
my $patron_1 = $builder->build( { source => 'Borrower', value => { branchcode => $library_1->{branchcode}, categorycode => $patron_category->{categorycode} } } ); |
Lines 2958-2967
subtest 'Set waiting flag' => sub {
Link Here
|
2958 |
$hold = Koha::Holds->find( $reserve_id ); |
2958 |
$hold = Koha::Holds->find( $reserve_id ); |
2959 |
is( $hold->found, undef, 'Hold is no longer marked waiting' ); |
2959 |
is( $hold->found, undef, 'Hold is no longer marked waiting' ); |
2960 |
is( $hold->priority, 1, "Hold is now priority one again"); |
2960 |
is( $hold->priority, 1, "Hold is now priority one again"); |
|
|
2961 |
is( $hold->waitingdate, undef, "Hold no longer has a waiting date"); |
2962 |
is( $hold->itemnumber, $item->{itemnumber}, "Hold has retained its' itemnumber"); |
2961 |
is( $messages->{ResFound}->{ResFound}, "Reserved", "Hold is still returned"); |
2963 |
is( $messages->{ResFound}->{ResFound}, "Reserved", "Hold is still returned"); |
2962 |
is( $messages->{ResFound}->{found}, undef, "Hold is no longer marked found in return message"); |
2964 |
is( $messages->{ResFound}->{found}, undef, "Hold is no longer marked found in return message"); |
2963 |
is( $messages->{ResFound}->{priority}, 1, "Hold is priority 1 in return message"); |
2965 |
is( $messages->{ResFound}->{priority}, 1, "Hold is priority 1 in return message"); |
2964 |
|
|
|
2965 |
}; |
2966 |
}; |
2966 |
|
2967 |
|
2967 |
subtest 'Cancel transfers on lost items' => sub { |
2968 |
subtest 'Cancel transfers on lost items' => sub { |
2968 |
- |
|
|