Lines 869-877
subtest 'deletion' => sub {
Link Here
|
869 |
|
869 |
|
870 |
my $library = $builder->build_object({ class => 'Koha::Libraries' }); |
870 |
my $library = $builder->build_object({ class => 'Koha::Libraries' }); |
871 |
my $library_2 = $builder->build_object({ class => 'Koha::Libraries' }); |
871 |
my $library_2 = $builder->build_object({ class => 'Koha::Libraries' }); |
872 |
t::lib::Mocks::mock_userenv({ branchcode => $library->branchcode }); |
|
|
873 |
|
872 |
|
874 |
my $patron = $builder->build_object({class => 'Koha::Patrons'}); |
873 |
my $patron = $builder->build_object({class => 'Koha::Patrons', value => { flags => 2^9 } }); # allow edit items |
|
|
874 |
t::lib::Mocks::mock_userenv({ branchcode => $library->branchcode, borrowernumber => $patron->id }); |
875 |
|
875 |
$item = $builder->build_sample_item({ library => $library->branchcode }); |
876 |
$item = $builder->build_sample_item({ library => $library->branchcode }); |
876 |
|
877 |
|
877 |
# book_on_loan |
878 |
# book_on_loan |
878 |
- |
|
|