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

(-)a/t/db_dependent/Circulation.t (-13 / +9 lines)
Lines 1955-1988 subtest 'AddReturn + suspension_chargeperiod' => sub { Link Here
1955
subtest 'CanBookBeIssued + AutoReturnCheckedOutItems' => sub {
1955
subtest 'CanBookBeIssued + AutoReturnCheckedOutItems' => sub {
1956
    plan tests => 2;
1956
    plan tests => 2;
1957
1957
1958
    my $library = $builder->build( { source => 'Branch' } );
1958
    my $library = $builder->build_object( { class => 'Koha::Libraries' } );
1959
    my $patron1 = $builder->build_object(
1959
    my $patron1 = $builder->build_object(
1960
        {
1960
        {
1961
            class => 'Koha::Patrons',
1961
            class => 'Koha::Patrons',
1962
            value  => {
1962
            value => {
1963
                branchcode => $library->{branchcode},
1963
                library      => $library->branchcode,
1964
                firstname => "Happy",
1964
                categorycode => $patron_category->{categorycode}
1965
                surname => "Gilmore",
1966
            }
1965
            }
1967
        }
1966
        }
1968
    );
1967
    );
1969
    my $patron2 = $builder->build_object(
1968
    my $patron2 = $builder->build_object(
1970
        {
1969
        {
1971
            class => 'Koha::Patrons',
1970
            class => 'Koha::Patrons',
1972
            value  => {
1971
            value => {
1973
                branchcode => $library->{branchcode},
1972
                library      => $library->branchcode,
1974
                firstname => "Billy",
1973
                categorycode => $patron_category->{categorycode}
1975
                surname => "Madison",
1976
            }
1974
            }
1977
        }
1975
        }
1978
    );
1976
    );
1979
1977
1980
    C4::Context->_new_userenv('xxx');
1978
    t::lib::Mocks::mock_userenv({ branchcode => $library->branchcode });
1981
    C4::Context->set_userenv(0,0,0,'firstname','surname', $library->{branchcode}, 'Random Library', '', '', '');
1982
1979
1983
    my $item = $builder->build_sample_item(
1980
    my $item = $builder->build_sample_item(
1984
        {
1981
        {
1985
            library      => $library->{branchcode},
1982
            library      => $library->branchcode,
1986
        }
1983
        }
1987
    )->unblessed;
1984
    )->unblessed;
1988
1985
1989
- 

Return to bug 24062