Bug 23233: (follow-up) Remove accidentally left comment
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Tue, 22 Oct 2019 11:00:51 +0000 (11:00 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 16 Dec 2019 11:09:14 +0000 (11:09 +0000)
The line

t::lib::Mocks::mock_preference( 'AllowItemsOnHoldCheckout', 0 );

was removed from below this comment line but the comment explaining
what it does was forgotten.

Signed-off-by: Lari Taskula <lari.taskula@hypernova.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

t/db_dependent/Koha/Item.t

index d647a24..58e13e9 100644 (file)
@@ -74,7 +74,6 @@ subtest 'has_pending_hold() tests' => sub {
     my $item  = $builder->build_sample_item({ itemlost => 0 });
     my $itemnumber = $item->itemnumber;
 
-    # disable AllowItemsOnHoldCheckout as it ignores pending holds
     $dbh->do("INSERT INTO tmp_holdsqueue (surname,borrowernumber,itemnumber) VALUES ('Clamp',42,$itemnumber)");
     ok( $item->has_pending_hold, "Yes, we have a pending hold");
     $dbh->do("DELETE FROM tmp_holdsqueue WHERE itemnumber=$itemnumber");