Lines 387-393
subtest 'pickup_locations' => sub {
Link Here
|
387 |
my ( $cbranch, $biblio, $patron, $results ) = @_; |
387 |
my ( $cbranch, $biblio, $patron, $results ) = @_; |
388 |
t::lib::Mocks::mock_preference('ReservesControlBranch', $cbranch); |
388 |
t::lib::Mocks::mock_preference('ReservesControlBranch', $cbranch); |
389 |
|
389 |
|
390 |
my @pl = @{ $biblio->pickup_locations( { patron => $patron} ) }; |
390 |
my @pl = $biblio->pickup_locations( { patron => $patron } ); |
391 |
|
391 |
|
392 |
foreach my $pickup_location (@pl) { |
392 |
foreach my $pickup_location (@pl) { |
393 |
is( ref($pickup_location), 'Koha::Library', 'Object type is correct' ); |
393 |
is( ref($pickup_location), 'Koha::Library', 'Object type is correct' ); |