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:
parent
ab29b5efdc
commit
15f9e830ec
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue