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

(-)a/t/db_dependent/Koha/Bookings.t (-2 / +14 lines)
Lines 33-39 my $builder = t::lib::TestBuilder->new; Link Here
33
33
34
subtest 'filter_by_future' => sub {
34
subtest 'filter_by_future' => sub {
35
35
36
    plan tests => 1;
36
    plan tests => 2;
37
37
38
    $schema->storage->txn_begin;
38
    $schema->storage->txn_begin;
39
39
Lines 75-79 subtest 'filter_by_future' => sub { Link Here
75
75
76
    is( $biblio->bookings->filter_by_future->count, 2, 'There should have 2 bookings starting after now' );
76
    is( $biblio->bookings->filter_by_future->count, 2, 'There should have 2 bookings starting after now' );
77
77
78
    $builder->build_object(
79
        {
80
            class => 'Koha::Bookings',
81
            value => {
82
                biblio_id  => $biblio->biblionumber,
83
                start_date => dt_from_string->truncate( to => 'day' ),
84
                end_date   => undef
85
            }
86
        }
87
    );
88
89
    is( $biblio->bookings->filter_by_future->count, 2, 'Current day is not considered future' );
90
78
    $schema->storage->txn_rollback;
91
    $schema->storage->txn_rollback;
79
};
92
};
80
- 

Return to bug 35788