Bug 19260: (followup) Fix CancelReserves.t test
authorJosef Moravec <josef.moravec@gmail.com>
Fri, 6 Oct 2017 16:41:28 +0000 (16:41 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 6 Oct 2017 19:45:20 +0000 (16:45 -0300)
Test plan:
Run t/db_dependent/Holds/CancelReserves.t

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Holds/CancelReserves.t

index 6c2a7c2..79de7fe 100644 (file)
@@ -17,6 +17,8 @@ $schema->storage->txn_begin;
 my $builder = t::lib::TestBuilder->new();
 
 t::lib::Mocks::mock_preference('ExpireReservesOnHolidays', 0);
+# Waiting reservers could be canceled only if ExpireReservesMaxPickUpDelay is set to "allow", see bug 19260
+t::lib::Mocks::mock_preference('ExpireReservesMaxPickUpDelay', 1);
 
 my $today = dt_from_string();
 my $reserve_reservedate = $today->clone;