From 6e5571288272ba78c45850de0ec4e67121215ddb 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 --- 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 a17a295c..fdd3b0f 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.1.4