Lines 47-53
subtest 'get_effective_issuing_rule' => sub {
Link Here
|
47 |
|
47 |
|
48 |
my $rule; |
48 |
my $rule; |
49 |
Koha::IssuingRules->delete; |
49 |
Koha::IssuingRules->delete; |
50 |
ok(!Koha::IssuingRules->search->count, 'There are no issuing rules.'); |
50 |
|
|
|
51 |
is(Koha::IssuingRules->search->count, 0, 'There are no issuing rules.'); |
51 |
$rule = Koha::IssuingRules->get_effective_issuing_rule({ |
52 |
$rule = Koha::IssuingRules->get_effective_issuing_rule({ |
52 |
branchcode => undef, |
53 |
branchcode => undef, |
53 |
categorycode => undef, |
54 |
categorycode => undef, |
Lines 76-82
subtest 'get_effective_issuing_rule' => sub {
Link Here
|
76 |
|
77 |
|
77 |
my $rule; |
78 |
my $rule; |
78 |
Koha::IssuingRules->delete; |
79 |
Koha::IssuingRules->delete; |
79 |
ok(!Koha::IssuingRules->search->count, 'There are no issuing rules.'); |
80 |
is(Koha::IssuingRules->search->count, 0, 'There are no issuing rules.'); |
80 |
$rule = Koha::IssuingRules->get_effective_issuing_rule({ |
81 |
$rule = Koha::IssuingRules->get_effective_issuing_rule({ |
81 |
branchcode => $branchcode, |
82 |
branchcode => $branchcode, |
82 |
categorycode => $categorycode, |
83 |
categorycode => $categorycode, |
83 |
- |
|
|