View | Details | Raw Unified | Return to bug 18762
Collapse All | Expand All

(-)a/t/db_dependent/Search/History.t (-5 / +3 lines)
Lines 19-27 use List::Util qw( shuffle ); Link Here
19
19
20
use C4::Context;
20
use C4::Context;
21
use Koha::DateUtils;
21
use Koha::DateUtils;
22
23
my $schema = Koha::Database->new->schema;
24
$schema->storage->txn_begin;
22
my $dbh = C4::Context->dbh;
25
my $dbh = C4::Context->dbh;
23
$dbh->{AutoCommit} = 0;
24
$dbh->{RaiseError} = 1;
25
26
26
use_ok('Koha::DateUtils');
27
use_ok('Koha::DateUtils');
27
use_ok('C4::Search::History');
28
use_ok('C4::Search::History');
Lines 472-477 $result2 = $schema->resultset('SearchHistory')->search()->count; Link Here
472
is($result2, $result+1, 'new search added to borrower');
473
is($result2, $result+1, 'new search added to borrower');
473
};
474
};
474
475
475
$dbh->rollback;
476
477
done_testing;
476
done_testing;
478
- 

Return to bug 18762