Lines 169-182
subtest 'pickup_locations' => sub {
Link Here
|
169 |
} |
169 |
} |
170 |
); |
170 |
); |
171 |
|
171 |
|
172 |
my $root1 = $builder->build_object( { class => 'Koha::Library::Groups', value => { ft_local_hold_group => 1 } } ); |
172 |
my $root1 = $builder->build_object( { class => 'Koha::Library::Groups', value => { ft_local_hold_group => 1, branchcode => undef } } ); |
173 |
my $root2 = $builder->build_object( { class => 'Koha::Library::Groups', value => { ft_local_hold_group => 1 } } ); |
173 |
my $root2 = $builder->build_object( { class => 'Koha::Library::Groups', value => { ft_local_hold_group => 1, branchcode => undef } } ); |
174 |
|
174 |
my $library1 = $builder->build_object( { class => 'Koha::Libraries', value => { pickup_location => 1, branchcode => 'TEST1' } } ); |
175 |
my $library1 = $builder->build_object( { class => 'Koha::Libraries', value => { pickup_location => 1 } } ); |
175 |
my $library2 = $builder->build_object( { class => 'Koha::Libraries', value => { pickup_location => 1, branchcode => 'TEST2' } } ); |
176 |
my $library2 = $builder->build_object( { class => 'Koha::Libraries', value => { pickup_location => 1 } } ); |
176 |
my $library3 = $builder->build_object( { class => 'Koha::Libraries', value => { pickup_location => 0, branchcode => 'TEST3' } } ); |
177 |
my $library3 = $builder->build_object( { class => 'Koha::Libraries', value => { pickup_location => 0 } } ); |
177 |
my $library4 = $builder->build_object( { class => 'Koha::Libraries', value => { pickup_location => 1, branchcode => 'TEST4' } } ); |
178 |
my $library4 = $builder->build_object( { class => 'Koha::Libraries', value => { pickup_location => 1 } } ); |
|
|
179 |
|
180 |
my $group1_1 = $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root1->id, branchcode => $library1->branchcode } } ); |
178 |
my $group1_1 = $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root1->id, branchcode => $library1->branchcode } } ); |
181 |
my $group1_2 = $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root1->id, branchcode => $library2->branchcode } } ); |
179 |
my $group1_2 = $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root1->id, branchcode => $library2->branchcode } } ); |
182 |
|
180 |
|
Lines 289-295
subtest 'pickup_locations' => sub {
Link Here
|
289 |
foreach my $pickup_location (@pl) { |
287 |
foreach my $pickup_location (@pl) { |
290 |
is( ref($pickup_location), 'Koha::Library', 'Object type is correct' ); |
288 |
is( ref($pickup_location), 'Koha::Library', 'Object type is correct' ); |
291 |
} |
289 |
} |
292 |
|
|
|
293 |
ok( |
290 |
ok( |
294 |
scalar(@pl) == $results->{ |
291 |
scalar(@pl) == $results->{ |
295 |
$item->barcode . '-' |
292 |
$item->barcode . '-' |
296 |
- |
|
|