Bug 18762: Remove a warning from History.t

Test plan:
  prove t/db_dependent/Search/History.t
should not display any warnings

Signed-off-by: Lee Jamison <ldjamison@marywood.edu>

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
This commit is contained in:
Jonathan Druart 2017-06-08 15:36:40 -03:00
parent ab29b5efdc
commit 15f9e830ec
1 changed files with 3 additions and 4 deletions

View File

@ -19,9 +19,10 @@ use List::Util qw( shuffle );
use C4::Context;
use Koha::DateUtils;
my $schema = Koha::Database->new->schema;
$schema->storage->txn_begin;
my $dbh = C4::Context->dbh;
$dbh->{AutoCommit} = 0;
$dbh->{RaiseError} = 1;
use_ok('Koha::DateUtils');
use_ok('C4::Search::History');
@ -472,6 +473,4 @@ $result2 = $schema->resultset('SearchHistory')->search()->count;
is($result2, $result+1, 'new search added to borrower');
};
$dbh->rollback;
done_testing;