|
Lines 654-660
subtest 'cancel() tests' => sub {
Link Here
|
| 654 |
); |
654 |
); |
| 655 |
$order->add_item( $item->id ); |
655 |
$order->add_item( $item->id ); |
| 656 |
|
656 |
|
| 657 |
my $patron = $builder->build_object({ class => 'Koha::Patrons' }); |
657 |
my $patron = $builder->build_object( |
|
|
658 |
{ |
| 659 |
class => 'Koha::Patrons', |
| 660 |
value => { branchcode => $item->homebranch, flags => 1 } |
| 661 |
} |
| 662 |
); |
| 658 |
t::lib::Mocks::mock_userenv({ patron => $patron }); |
663 |
t::lib::Mocks::mock_userenv({ patron => $patron }); |
| 659 |
|
664 |
|
| 660 |
# Add a checkout so deleting the item fails because od 'book_on_loan' |
665 |
# Add a checkout so deleting the item fails because od 'book_on_loan' |
| 661 |
- |
|
|