Bug 31086: (QA follow-up) Fix failing tests

This test was missed first time around, branchcode needed adding to all
the calls to AddReserve.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-07-12 16:21:30 +01:00 committed by Tomas Cohen Arazi
parent d731943c24
commit bdddc7ee0a
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 6 additions and 0 deletions

View File

@ -432,10 +432,13 @@ subtest 'get_items_that_can_fill' => sub {
my $patron_2 = $builder->build_object( { class => 'Koha::Patrons' } );
my $patron_3 = $builder->build_object( { class => 'Koha::Patrons' } );
my $library_1 = $builder->build_object( { class => 'Koha::Libraries' } );
t::lib::Mocks::mock_userenv( { patron => $patron_1 } );
my $reserve_id_1 = C4::Reserves::AddReserve(
{
branchcode => $library_1->branchcode,
borrowernumber => $patron_1->borrowernumber,
biblionumber => $biblio->biblionumber,
priority => 1,
@ -449,6 +452,7 @@ subtest 'get_items_that_can_fill' => sub {
my $reserve_id_2 = C4::Reserves::AddReserve(
{
branchcode => $library_1->branchcode,
borrowernumber => $patron_2->borrowernumber,
biblionumber => $biblio->biblionumber,
priority => 2,
@ -458,6 +462,7 @@ subtest 'get_items_that_can_fill' => sub {
my $waiting_reserve_id = C4::Reserves::AddReserve(
{
branchcode => $library_1->branchcode,
borrowernumber => $patron_2->borrowernumber,
biblionumber => $biblio->biblionumber,
priority => 0,
@ -468,6 +473,7 @@ subtest 'get_items_that_can_fill' => sub {
my $notforloan_reserve_id = C4::Reserves::AddReserve(
{
branchcode => $library_1->branchcode,
borrowernumber => $patron_2->borrowernumber,
biblionumber => $biblio->biblionumber,
priority => 0,