Bug 17783: Replace ok with is
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 20 Dec 2016 17:07:40 +0000 (18:07 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 23 Dec 2016 12:01:57 +0000 (12:01 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Koha/IssuingRules.t

index 847f971..2285be1 100644 (file)
@@ -47,7 +47,8 @@ subtest 'get_effective_issuing_rule' => sub {
 
         my $rule;
         Koha::IssuingRules->delete;
-        ok(!Koha::IssuingRules->search->count, 'There are no issuing rules.');
+
+        is(Koha::IssuingRules->search->count, 0, 'There are no issuing rules.');
         $rule = Koha::IssuingRules->get_effective_issuing_rule({
             branchcode   => undef,
             categorycode => undef,
@@ -76,7 +77,7 @@ subtest 'get_effective_issuing_rule' => sub {
 
         my $rule;
         Koha::IssuingRules->delete;
-        ok(!Koha::IssuingRules->search->count, 'There are no issuing rules.');
+        is(Koha::IssuingRules->search->count, 0, 'There are no issuing rules.');
         $rule = Koha::IssuingRules->get_effective_issuing_rule({
             branchcode   => $branchcode,
             categorycode => $categorycode,