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

(-)a/t/db_dependent/Koha/Objects.t (-2 / +5 lines)
Lines 802-808 subtest 'prefetch_whitelist() tests' => sub { Link Here
802
802
803
subtest 'empty() tests' => sub {
803
subtest 'empty() tests' => sub {
804
804
805
    plan tests => 3;
805
    plan tests => 5;
806
806
807
    $schema->storage->txn_begin;
807
    $schema->storage->txn_begin;
808
808
Lines 814-818 subtest 'empty() tests' => sub { Link Here
814
    is( ref($empty), 'Koha::Patrons', '->empty returns a Koha::Patrons iterator' );
814
    is( ref($empty), 'Koha::Patrons', '->empty returns a Koha::Patrons iterator' );
815
    is( $empty->count, 0, 'The empty resultset is, well, empty :-D' );
815
    is( $empty->count, 0, 'The empty resultset is, well, empty :-D' );
816
816
817
    $empty = Koha::Patrons->empty;
818
    is( ref($empty), 'Koha::Patrons', 'without being instantiated, ->empty still returns a Koha::Patrons iterator' );
819
    is( $empty->count, 0, 'The empty resultset is, well, empty :-D' );
820
817
    $schema->storage->txn_rollback;
821
    $schema->storage->txn_rollback;
818
};
822
};
819
- 

Return to bug 25296