|
Lines 110-116
subtest 'new' => sub {
Link Here
|
| 110 |
}; |
110 |
}; |
| 111 |
|
111 |
|
| 112 |
subtest 'find' => sub { |
112 |
subtest 'find' => sub { |
| 113 |
plan tests => 4; |
113 |
plan tests => 5; |
| 114 |
|
114 |
|
| 115 |
# check find on a single PK |
115 |
# check find on a single PK |
| 116 |
my $patron = $builder->build({ source => 'Borrower' }); |
116 |
my $patron = $builder->build({ source => 'Borrower' }); |
|
Lines 133-138
subtest 'find' => sub {
Link Here
|
| 133 |
my @pk = ( $rule->{branchcode}, $rule->{categorycode}, $rule->{itemtype} ); |
133 |
my @pk = ( $rule->{branchcode}, $rule->{categorycode}, $rule->{itemtype} ); |
| 134 |
is( ref(Koha::IssuingRules->find(@pk)), "Koha::IssuingRule", |
134 |
is( ref(Koha::IssuingRules->find(@pk)), "Koha::IssuingRule", |
| 135 |
'Find returned a Koha object for composite primary key' ); |
135 |
'Find returned a Koha object for composite primary key' ); |
|
|
136 |
|
| 137 |
is( Koha::Patrons->find(), undef, 'Find returns undef if no params passed' ); |
| 136 |
}; |
138 |
}; |
| 137 |
|
139 |
|
| 138 |
subtest 'search_related' => sub { |
140 |
subtest 'search_related' => sub { |
| 139 |
- |
|
|