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

(-)a/t/db_dependent/Koha/Objects.t (-2 / +4 lines)
Lines 1219-1225 subtest 'prefetch_whitelist() tests' => sub { Link Here
1219
1219
1220
subtest 'empty() tests' => sub {
1220
subtest 'empty() tests' => sub {
1221
1221
1222
    plan tests => 6;
1222
    plan tests => 7;
1223
1223
1224
    $schema->storage->txn_begin;
1224
    $schema->storage->txn_begin;
1225
1225
Lines 1242-1247 subtest 'empty() tests' => sub { Link Here
1242
1242
1243
    is( "$@", 'Tried to access the \'empty\' method, but Koha::Patrons is not instantiated', 'Exception stringified correctly' );
1243
    is( "$@", 'Tried to access the \'empty\' method, but Koha::Patrons is not instantiated', 'Exception stringified correctly' );
1244
1244
1245
    my @patrons = Koha::Patrons->new->empty;
1246
    is( scalar @patrons, 0, 'List context makes ->empty return an empty list' );
1247
1245
    $schema->storage->txn_rollback;
1248
    $schema->storage->txn_rollback;
1246
};
1249
};
1247
1250
1248
- 

Return to bug 28871