Bug 23233: (follow-up) Correct test description
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Tue, 22 Oct 2019 11:20:39 +0000 (11:20 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 16 Dec 2019 11:09:24 +0000 (11:09 +0000)
AllowItemsOnHoldCheckout is not checked anymore but instead only
whether the tmp_holdsqueue is empty or not.

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/Items.t

index 401c881..8ac9e7e 100755 (executable)
@@ -322,7 +322,7 @@ subtest 'GetItemsInfo tests' => sub {
     $dbh->do(q{INSERT INTO tmp_holdsqueue (biblionumber, itemnumber, surname, borrowernumber ) VALUES (?, ?, "Zorro", 42)}, undef, $item_bibnum, $itemnumber);
     @results = GetItemsInfo( $biblio->biblionumber );
     is( $results[0]->{ has_pending_hold }, "1",
-        'Hold marked as pending/unavailable if not AllowItemsOnHoldCheckout' );
+        'Hold marked as pending/unavailable if tmp_holdsqueue is not empty for item' );
 
     $schema->storage->txn_rollback;
 };