View | Details | Raw Unified | Return to bug 21944
Collapse All | Expand All

(-)a/t/db_dependent/Circulation.t (-2 / +12 lines)
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 => 4;
2912
    plan tests => 9;
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 2951-2956 subtest 'Set waiting flag' => sub { Link Here
2951
    is( $hold->found, 'W', 'Hold is waiting' );
2951
    is( $hold->found, 'W', 'Hold is waiting' );
2952
    ( $status ) = CheckReserves($item->{itemnumber});
2952
    ( $status ) = CheckReserves($item->{itemnumber});
2953
    is( $status, 'Waiting', 'Now the hold is waiting');
2953
    is( $status, 'Waiting', 'Now the hold is waiting');
2954
2955
    #Bug 21944 - Waiting transfer checked in at branch other than pickup location
2956
    set_userenv( $library_1 );
2957
    (undef, my $messages, undef, undef ) = AddReturn ( $item->{barcode}, $library_1->{branchcode} );
2958
    $hold = Koha::Holds->find( $reserve_id );
2959
    is( $hold->found, undef, 'Hold is no longer marked waiting' );
2960
    is( $hold->priority, 1,  "Hold is now priority one again");
2961
    is( $messages->{ResFound}->{ResFound}, "Reserved", "Hold is still returned");
2962
    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");
2964
2954
};
2965
};
2955
2966
2956
subtest 'Cancel transfers on lost items' => sub {
2967
subtest 'Cancel transfers on lost items' => sub {
2957
- 

Return to bug 21944