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

(-)a/t/db_dependent/Koha/Item.t (-4 / +4 lines)
Lines 1432-1443 subtest 'store() tests' => sub { Link Here
1432
            }
1432
            }
1433
        );
1433
        );
1434
1434
1435
        my $lostreturn_policy = 'charge';
1435
        my $lostreturn_policy = {
1436
        my $processingreturn_policy = 'refund';
1436
            lostreturn       => 'charge',
1437
            processingreturn => 'refund'
1438
        };
1437
1439
1438
        my $mocked_circ_rules = Test::MockModule->new('Koha::CirculationRules');
1440
        my $mocked_circ_rules = Test::MockModule->new('Koha::CirculationRules');
1439
        $mocked_circ_rules->mock( 'get_lostreturn_policy', sub { return $lostreturn_policy; } );
1441
        $mocked_circ_rules->mock( 'get_lostreturn_policy', sub { return $lostreturn_policy; } );
1440
        $mocked_circ_rules->mock( 'get_processingreturn_policy', sub { return $processingreturn_policy; } );
1441
1442
1442
        # simulate it was found
1443
        # simulate it was found
1443
        $item->set( { itemlost => 0 } )->store;
1444
        $item->set( { itemlost => 0 } )->store;
1444
- 

Return to bug 23012