From 377fa87b18097648b7a1aebc31a17586f02f59c1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 20 Dec 2016 18:07:40 +0100 Subject: [PATCH] Bug 17783: Replace ok with is Signed-off-by: Jonathan Druart --- t/db_dependent/Koha/IssuingRules.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/IssuingRules.t b/t/db_dependent/Koha/IssuingRules.t index 847f971..2285be1 100644 --- a/t/db_dependent/Koha/IssuingRules.t +++ b/t/db_dependent/Koha/IssuingRules.t @@ -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, -- 2.9.3