From 53261e6a0e38d907d5dad9983b66e0353447e5f9 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 7 Sep 2016 11:52:37 +0200 Subject: [PATCH] Bug 11708: UT: Replace 'ok' by 'is' where appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Séverine QUEUNE --- t/db_dependent/Acquisition/Basketgroups.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Acquisition/Basketgroups.t b/t/db_dependent/Acquisition/Basketgroups.t index a17a295c00..fdd3b0fc78 100755 --- a/t/db_dependent/Acquisition/Basketgroups.t +++ b/t/db_dependent/Acquisition/Basketgroups.t @@ -30,7 +30,7 @@ $basketgroup = GetBasketgroup($basketgroupid); ok($basketgroup->{closed}, "basket group is closed"); ok(defined($basketgroup->{closeddate}), "basket group closed date is not empty"); my ($day, $month, $year) = (localtime)[3,4,5]; -ok($basketgroup->{closeddate} eq sprintf("%04d-%02d-%02d", $year+1900, $month+1, $day), "basket group closed date is correct"); +is($basketgroup->{closeddate}, sprintf("%04d-%02d-%02d", $year+1900, $month+1, $day), "basket group closed date is correct"); ReOpenBasketgroup($basketgroupid); $basketgroup = GetBasketgroup($basketgroupid); @@ -42,7 +42,7 @@ ModBasketgroup($basketgroup); $basketgroup = GetBasketgroup($basketgroupid); ok($basketgroup->{closed}, "basket group is closed"); ok(defined($basketgroup->{closeddate}), "basket group closed date is not empty"); -ok($basketgroup->{closeddate} eq sprintf("%04d-%02d-%02d", $year+1900, $month+1, $day), "basket group closed date is correct"); +is($basketgroup->{closeddate}, sprintf("%04d-%02d-%02d", $year+1900, $month+1, $day), "basket group closed date is correct"); $basketgroupid = NewBasketgroup({ booksellerid => $booksellerid, @@ -52,6 +52,6 @@ $basketgroupid = NewBasketgroup({ $basketgroup = GetBasketgroup($basketgroupid); ok($basketgroup->{closed}, "basket group is closed"); ok(defined($basketgroup->{closeddate}), "basket group closed date is not empty"); -ok($basketgroup->{closeddate} eq sprintf("%04d-%02d-%02d", $year+1900, $month+1, $day), "basket group closed date is correct"); +is($basketgroup->{closeddate}, sprintf("%04d-%02d-%02d", $year+1900, $month+1, $day), "basket group closed date is correct"); $dbh->rollback; -- 2.14.2