@@ -, +, @@ --- t/db_dependent/Utils/Datatables_Virtualshelves.t | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/t/db_dependent/Utils/Datatables_Virtualshelves.t +++ a/t/db_dependent/Utils/Datatables_Virtualshelves.t @@ -29,12 +29,10 @@ use Koha::Virtualshelves; use_ok( "C4::Utils::DataTables::VirtualShelves" ); +my $schema = Koha::Database->new->schema; +$schema->storage->txn_begin; my $dbh = C4::Context->dbh; -# Start transaction -$dbh->{AutoCommit} = 0; -$dbh->{RaiseError} = 1; - $dbh->do(q|DELETE FROM virtualshelves|); # Pick a categorycode from the DB --