Lines 1782-1788
subtest '_Findgroupreserves' => sub {
Link Here
|
1782 |
my $patron_1 = $builder->build_object( { class => 'Koha::Patrons' } ); |
1782 |
my $patron_1 = $builder->build_object( { class => 'Koha::Patrons' } ); |
1783 |
my $patron_2 = $builder->build_object( { class => 'Koha::Patrons' } ); |
1783 |
my $patron_2 = $builder->build_object( { class => 'Koha::Patrons' } ); |
1784 |
my $item = $builder->build_sample_item(); |
1784 |
my $item = $builder->build_sample_item(); |
1785 |
my $item_2 = $builder->build_sample_item( { biblionumber => $item->biblionumber } ); |
1785 |
my $item_2 = $builder->build_sample_item( { biblionumber => $item->biblionumber } ); |
1786 |
|
1786 |
|
1787 |
t::lib::Mocks::mock_preference( 'RealTimeHoldsQueue', 0 ); |
1787 |
t::lib::Mocks::mock_preference( 'RealTimeHoldsQueue', 0 ); |
1788 |
my $reserve_id_1 = AddReserve( |
1788 |
my $reserve_id_1 = AddReserve( |
Lines 1803-1810
subtest '_Findgroupreserves' => sub {
Link Here
|
1803 |
C4::HoldsQueue::AddToHoldTargetMap( |
1803 |
C4::HoldsQueue::AddToHoldTargetMap( |
1804 |
{ |
1804 |
{ |
1805 |
$item->id => { |
1805 |
$item->id => { |
1806 |
borrowernumber => $patron_1->id, biblionumber => $item->biblionumber, |
1806 |
borrowernumber => $patron_1->id, biblionumber => $item->biblionumber, |
1807 |
holdingbranch => $item->holdingbranch, item_level => 0, reserve_id => $reserve_id_1 |
1807 |
holdingbranch => $item->holdingbranch, item_level => 0, reserve_id => $reserve_id_1 |
1808 |
} |
1808 |
} |
1809 |
} |
1809 |
} |
1810 |
); |
1810 |
); |
Lines 1817-1824
subtest '_Findgroupreserves' => sub {
Link Here
|
1817 |
C4::HoldsQueue::AddToHoldTargetMap( |
1817 |
C4::HoldsQueue::AddToHoldTargetMap( |
1818 |
{ |
1818 |
{ |
1819 |
$item_2->id => { |
1819 |
$item_2->id => { |
1820 |
borrowernumber => $patron_2->id, biblionumber => $item->biblionumber, |
1820 |
borrowernumber => $patron_2->id, biblionumber => $item->biblionumber, |
1821 |
holdingbranch => $item->holdingbranch, item_level => 1, reserve_id => $reserve_id_2 |
1821 |
holdingbranch => $item->holdingbranch, item_level => 1, reserve_id => $reserve_id_2 |
1822 |
} |
1822 |
} |
1823 |
} |
1823 |
} |
1824 |
); |
1824 |
); |
1825 |
- |
|
|