Bug 18759: (follow-up) Try to fix random failure from Circulation.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Jun 2017 13:08:37 +0000 (10:08 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Jun 2017 13:08:37 +0000 (10:08 -0300)
If IndependentBranches, CanBookBeRenewed will set ITEMNOTSAMEBRANCH
or BORRNOTSAMEBRANCH flags, if the branches do not match.

t/db_dependent/Circulation.t

index 995ffbc..9d0f77c 100755 (executable)
@@ -73,6 +73,7 @@ my $borrower = {
 };
 
 # No userenv, PickupLibrary
+t::lib::Mocks::mock_preference('IndependentBranches', '0');
 t::lib::Mocks::mock_preference('CircControl', 'PickupLibrary');
 is(
     C4::Context->preference('CircControl'),