@@ -, +, @@ --------- -- Are the additions/subtractions similar to http://paste.lisp.org/display/149194? --- t/db_dependent/Auth_with_ldap.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/t/db_dependent/Auth_with_ldap.t +++ a/t/db_dependent/Auth_with_ldap.t @@ -23,10 +23,13 @@ use Test::MockObject; use Test::Warn; use C4::Context; +use Koha::Database; my $dbh = C4::Context->dbh; # Start transaction -$dbh->{ AutoCommit } = 0; +my $database = Koha::Database->new(); +my $schema = $database->schema(); +$schema->storage->txn_begin(); $dbh->{ RaiseError } = 1; # Variables controlling LDAP server config @@ -374,6 +377,6 @@ sub reload_ldap_module { C4::Auth_with_ldap->import; } -$dbh->rollback; +$schema->storage->txn_rollback(); 1; --