View | Details | Raw Unified | Return to bug 31920
Collapse All | Expand All

(-)a/t/db_dependent/Holds.t (-2 / +6 lines)
Lines 1709-1714 subtest 'ModReserve can only update expirationdate for found holds' => sub { Link Here
1709
1709
1710
subtest 'Koha::Holds->get_items_that_can_fill returns items with datecancelled or (inclusive) datearrived' => sub {
1710
subtest 'Koha::Holds->get_items_that_can_fill returns items with datecancelled or (inclusive) datearrived' => sub {
1711
    plan tests => 8;
1711
    plan tests => 8;
1712
1713
    $schema->storage->txn_begin;
1714
1712
    # biblio item with date arrived and date cancelled
1715
    # biblio item with date arrived and date cancelled
1713
    my $biblio1 = $builder->build_sample_biblio();
1716
    my $biblio1 = $builder->build_sample_biblio();
1714
    my $item1 = $builder->build_sample_item({ biblionumber => $biblio1->biblionumber });
1717
    my $item1 = $builder->build_sample_item({ biblionumber => $biblio1->biblionumber });
Lines 1795-1798 subtest 'Koha::Holds->get_items_that_can_fill returns items with datecancelled o Link Here
1795
    is($items_that_can_fill3->count, 1, "Koha::Holds->get_items_that_can_fill returns 1 item with correct parameters");
1798
    is($items_that_can_fill3->count, 1, "Koha::Holds->get_items_that_can_fill returns 1 item with correct parameters");
1796
    is($items_that_can_fill4->next, undef, "Koha::Holds->get_items_that_can_fill doesn't return item with undefined datearrived and undefined datecancelled");
1799
    is($items_that_can_fill4->next, undef, "Koha::Holds->get_items_that_can_fill doesn't return item with undefined datearrived and undefined datecancelled");
1797
    is($items_that_can_fill4->count, 0, "Koha::Holds->get_items_that_can_fill returns 0 item");
1800
    is($items_that_can_fill4->count, 0, "Koha::Holds->get_items_that_can_fill returns 0 item");
1798
}
1801
1802
    $schema->storage->txn_rollback;
1803
};
1799
- 

Return to bug 31920