@@ -, +, @@ --- t/db_dependent/Koha/Objects.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/t/db_dependent/Koha/Objects.t +++ a/t/db_dependent/Koha/Objects.t @@ -1219,7 +1219,7 @@ subtest 'prefetch_whitelist() tests' => sub { subtest 'empty() tests' => sub { - plan tests => 6; + plan tests => 7; $schema->storage->txn_begin; @@ -1242,6 +1242,9 @@ subtest 'empty() tests' => sub { is( "$@", 'Tried to access the \'empty\' method, but Koha::Patrons is not instantiated', 'Exception stringified correctly' ); + my @patrons = Koha::Patrons->new->empty; + is( scalar @patrons, 0, 'List context makes ->empty return an empty list' ); + $schema->storage->txn_rollback; }; --