From 2fe2ef41bd8bf2f142597e39f493edbdbf75c8a3 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 Signed-off-by: Kyle M Hall --- 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 847f971fb3..2285be10f0 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,