Lines 686-696
subtest 'pickup_locations() tests' => sub {
Link Here
|
686 |
my $patron = $builder->build_object( |
686 |
my $patron = $builder->build_object( |
687 |
{ |
687 |
{ |
688 |
class => 'Koha::Patrons', |
688 |
class => 'Koha::Patrons', |
689 |
value => { userid => 'tomasito', flags => 1 } |
689 |
value => { userid => 'tomasito', flags => 0 } |
690 |
} |
690 |
} |
691 |
); |
691 |
); |
692 |
$patron->set_password( { password => $password, skip_validation => 1 } ); |
692 |
$patron->set_password( { password => $password, skip_validation => 1 } ); |
693 |
my $userid = $patron->userid; |
693 |
my $userid = $patron->userid; |
|
|
694 |
$builder->build( |
695 |
{ |
696 |
source => 'UserPermission', |
697 |
value => { |
698 |
borrowernumber => $patron->borrowernumber, |
699 |
module_bit => 6, |
700 |
code => 'place_holds', |
701 |
}, |
702 |
} |
703 |
); |
694 |
|
704 |
|
695 |
my $item_class = Test::MockModule->new('Koha::Item'); |
705 |
my $item_class = Test::MockModule->new('Koha::Item'); |
696 |
$item_class->mock( |
706 |
$item_class->mock( |
697 |
- |
|
|