Lines 119-136
subtest 'Test Koha::Checkout::claim_returned, mark as returned' => sub {
Link Here
|
119 |
|
119 |
|
120 |
t::lib::Mocks::mock_preference( 'ClaimReturnedLostValue', 1 ); |
120 |
t::lib::Mocks::mock_preference( 'ClaimReturnedLostValue', 1 ); |
121 |
t::lib::Mocks::mock_preference( 'MarkLostItemsAsReturned', q{claim_returned} ); |
121 |
t::lib::Mocks::mock_preference( 'MarkLostItemsAsReturned', q{claim_returned} ); |
122 |
my $biblio = $builder->build_object( { class => 'Koha::Biblios' } ); |
122 |
my $item = $builder->build_sample_item; |
123 |
my $item = $builder->build_object( |
|
|
124 |
{ |
125 |
class => 'Koha::Items', |
126 |
value => { |
127 |
biblionumber => $biblio->biblionumber, |
128 |
notforloan => 0, |
129 |
itemlost => 0, |
130 |
withdrawn => 0, |
131 |
} |
132 |
} |
133 |
); |
134 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
123 |
my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); |
135 |
my $checkout = AddIssue( $patron->unblessed, $item->barcode ); |
124 |
my $checkout = AddIssue( $patron->unblessed, $item->barcode ); |
136 |
|
125 |
|
137 |
- |
|
|