From 7244d5060be46f0b7154b897d28997970774957d Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 26 Sep 2011 11:55:58 +1300 Subject: [PATCH] Fixing a broken test --- t/db_dependent/Log.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Log.t b/t/db_dependent/Log.t index b110bae923..8a25c18a5a 100644 --- a/t/db_dependent/Log.t +++ b/t/db_dependent/Log.t @@ -7,7 +7,9 @@ use strict; use warnings; use Test::More tests => 5; -use C4::Log; + +# We need C4::Dates to handle the dates +use C4::Dates; BEGIN { use_ok('C4::Log'); @@ -36,7 +38,8 @@ ok($success, "GetLogs returns results for an open search"); eval { # FIXME: US formatted date hardcoded into test for now - $success = scalar(@{GetLogs("09/01/2011","10/01/2011","",undef,undef,"","")}); + my $date = C4::Dates->new(); + $success = scalar(@{GetLogs($date->today(),$date->today(),"",undef,undef,"","")}); } or do { diag($@); $success = 0; -- 2.20.1