Fixing a broken test

(cherry picked from commit 7244d5060b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Chris Cormack 2011-09-26 11:55:58 +13:00 committed by Chris Nighswonger
parent 0155ee41e6
commit 459c3c7b76
1 changed files with 5 additions and 2 deletions

View File

@ -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;