Lines 916-921
my ( $reused_itemnumber_1, $reused_itemnumber_2 );
Link Here
|
916 |
( $renewokay, $error ) = CanBookBeRenewed($renewing_borrowernumber, $item_7->itemnumber); |
916 |
( $renewokay, $error ) = CanBookBeRenewed($renewing_borrowernumber, $item_7->itemnumber); |
917 |
is( $renewokay, 0, '(Bug 8236), Cannot renew, one of the items is overdue'); |
917 |
is( $renewokay, 0, '(Bug 8236), Cannot renew, one of the items is overdue'); |
918 |
|
918 |
|
|
|
919 |
my $manager = $builder->build_object({ class => "Koha::Patrons" }); |
920 |
t::lib::Mocks::mock_userenv({ patron => $manager,branchcode => $manager->branchcode }); |
919 |
t::lib::Mocks::mock_preference('WhenLostChargeReplacementFee','1'); |
921 |
t::lib::Mocks::mock_preference('WhenLostChargeReplacementFee','1'); |
920 |
$checkout = Koha::Checkouts->find( { itemnumber => $item_3->itemnumber } ); |
922 |
$checkout = Koha::Checkouts->find( { itemnumber => $item_3->itemnumber } ); |
921 |
LostItem( $item_3->itemnumber, 'test', 0 ); |
923 |
LostItem( $item_3->itemnumber, 'test', 0 ); |
Lines 2004-2009
subtest '_FixAccountForLostAndReturned' => sub {
Link Here
|
2004 |
plan tests => 10; |
2006 |
plan tests => 10; |
2005 |
|
2007 |
|
2006 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
2008 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
|
|
2009 |
my manager = $builder->build_object({ class => "Koha::Patrons" }); |
2010 |
t::lib::Mocks::mock_userenv({ patron => $manager,branchcode => $manager->branchcode }); |
2007 |
|
2011 |
|
2008 |
my $item = $builder->build_sample_item( |
2012 |
my $item = $builder->build_sample_item( |
2009 |
{ |
2013 |
{ |
2010 |
- |
|
|