@@ -, +, @@ --- t/db_dependent/Koha/Objects.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/t/db_dependent/Koha/Objects.t +++ a/t/db_dependent/Koha/Objects.t @@ -100,7 +100,7 @@ subtest 'new' => sub { }; subtest 'find' => sub { - plan tests => 4; + plan tests => 5; # check find on a single PK my $patron = $builder->build({ source => 'Borrower' }); @@ -123,6 +123,8 @@ subtest 'find' => sub { my @pk = ( $rule->{branchcode}, $rule->{categorycode}, $rule->{itemtype} ); is( ref(Koha::IssuingRules->find(@pk)), "Koha::IssuingRule", 'Find returned a Koha object for composite primary key' ); + + is( Koha::Patrons->find(), undef, 'Find returns undef if no params passed' ); }; subtest 'search_related' => sub { --