Bug 18361: (QA followup) Add tests for the no params case
This patch adds a test for the trivial case in which no param is passed
and the ->find method returns undef.
For completeness purposes.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e1f943b999)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
5a137e3c6c
commit
c4eb6e260b
|
|
@ -110,7 +110,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' });
|
||||
|
|
@ -133,6 +133,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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue