Lines 321-383
subtest 'pickup_locations' => sub {
Link Here
|
321 |
my $group3_7 = $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root3->id, branchcode => $library7->branchcode } } ); |
321 |
my $group3_7 = $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root3->id, branchcode => $library7->branchcode } } ); |
322 |
my $group3_8 = $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root3->id, branchcode => $library8->branchcode } } ); |
322 |
my $group3_8 = $builder->build_object( { class => 'Koha::Library::Groups', value => { parent_id => $root3->id, branchcode => $library8->branchcode } } ); |
323 |
|
323 |
|
324 |
my $biblio1 = $builder->build_object( { class => 'Koha::Biblios', value => {title => '1'} } ); |
324 |
my $biblio1 = $builder->build_sample_biblio({ title => '1' }); |
325 |
my $biblioitem1 = $builder->build_object( { class => 'Koha::Biblioitems', value => { biblionumber => $biblio1->biblionumber } } ); |
325 |
my $biblio2 = $builder->build_sample_biblio({ title => '2' }); |
326 |
my $biblio2 = $builder->build_object( { class => 'Koha::Biblios', value => {title => '2'} } ); |
|
|
327 |
my $biblioitem2 = $builder->build_object( { class => 'Koha::Biblioitems', value => { biblionumber => $biblio2->biblionumber } } ); |
328 |
|
326 |
|
329 |
my $item1_1 = Koha::Item->new({ |
327 |
my $item1_1 = $builder->build_sample_item({ |
330 |
biblionumber => $biblio1->biblionumber, |
328 |
biblionumber => $biblio1->biblionumber, |
331 |
biblioitemnumber => $biblioitem1->biblioitemnumber, |
|
|
332 |
homebranch => $library1->branchcode, |
329 |
homebranch => $library1->branchcode, |
333 |
holdingbranch => $library2->branchcode, |
330 |
holdingbranch => $library2->branchcode, |
334 |
itype => 'test', |
|
|
335 |
barcode => "item11barcode", |
336 |
})->store; |
331 |
})->store; |
337 |
|
332 |
|
338 |
my $item1_3 = Koha::Item->new({ |
333 |
my $item1_3 = $builder->build_sample_item({ |
339 |
biblionumber => $biblio1->biblionumber, |
334 |
biblionumber => $biblio1->biblionumber, |
340 |
biblioitemnumber => $biblioitem1->biblioitemnumber, |
|
|
341 |
homebranch => $library3->branchcode, |
335 |
homebranch => $library3->branchcode, |
342 |
holdingbranch => $library4->branchcode, |
336 |
holdingbranch => $library4->branchcode, |
343 |
itype => 'test', |
|
|
344 |
barcode => "item13barcode", |
345 |
})->store; |
337 |
})->store; |
346 |
|
338 |
|
347 |
my $item1_7 = Koha::Item->new({ |
339 |
my $item1_7 = $builder->build_sample_item({ |
348 |
biblionumber => $biblio1->biblionumber, |
340 |
biblionumber => $biblio1->biblionumber, |
349 |
biblioitemnumber => $biblioitem1->biblioitemnumber, |
|
|
350 |
homebranch => $library7->branchcode, |
341 |
homebranch => $library7->branchcode, |
351 |
holdingbranch => $library4->branchcode, |
342 |
holdingbranch => $library4->branchcode, |
352 |
itype => 'test', |
|
|
353 |
barcode => "item17barcode", |
354 |
})->store; |
343 |
})->store; |
355 |
|
344 |
|
356 |
my $item2_2 = Koha::Item->new({ |
345 |
my $item2_2 = $builder->build_sample_item({ |
357 |
biblionumber => $biblio2->biblionumber, |
346 |
biblionumber => $biblio2->biblionumber, |
358 |
biblioitemnumber => $biblioitem2->biblioitemnumber, |
|
|
359 |
homebranch => $library2->branchcode, |
347 |
homebranch => $library2->branchcode, |
360 |
holdingbranch => $library1->branchcode, |
348 |
holdingbranch => $library1->branchcode, |
361 |
itype => 'test', |
|
|
362 |
barcode => "item22barcode", |
363 |
})->store; |
349 |
})->store; |
364 |
|
350 |
|
365 |
my $item2_4 = Koha::Item->new({ |
351 |
my $item2_4 = $builder->build_sample_item({ |
366 |
biblionumber => $biblio2->biblionumber, |
352 |
biblionumber => $biblio2->biblionumber, |
367 |
biblioitemnumber => $biblioitem2->biblioitemnumber, |
|
|
368 |
homebranch => $library4->branchcode, |
353 |
homebranch => $library4->branchcode, |
369 |
holdingbranch => $library3->branchcode, |
354 |
holdingbranch => $library3->branchcode, |
370 |
itype => 'test', |
|
|
371 |
barcode => "item23barcode", |
372 |
})->store; |
355 |
})->store; |
373 |
|
356 |
|
374 |
my $item2_6 = Koha::Item->new({ |
357 |
my $item2_6 = $builder->build_sample_item({ |
375 |
biblionumber => $biblio2->biblionumber, |
358 |
biblionumber => $biblio2->biblionumber, |
376 |
biblioitemnumber => $biblioitem2->biblioitemnumber, |
|
|
377 |
homebranch => $library6->branchcode, |
359 |
homebranch => $library6->branchcode, |
378 |
holdingbranch => $library4->branchcode, |
360 |
holdingbranch => $library4->branchcode, |
379 |
itype => 'test', |
|
|
380 |
barcode => "item26barcode", |
381 |
})->store; |
361 |
})->store; |
382 |
|
362 |
|
383 |
my $patron1 = $builder->build_object( { class => 'Koha::Patrons', value => { firstname=>'1', branchcode => $library1->branchcode } } ); |
363 |
my $patron1 = $builder->build_object( { class => 'Koha::Patrons', value => { firstname=>'1', branchcode => $library1->branchcode } } ); |
384 |
- |
|
|