@@ -, +, @@ --------- -- Are the additions/subtractions similar to http://paste.lisp.org/display/149194? -- I added explicit rollback, since I do not know the default behaviour of DBIx. --- t/db_dependent/Borrower.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/t/db_dependent/Borrower.t +++ a/t/db_dependent/Borrower.t @@ -30,7 +30,9 @@ BEGIN { # Start transaction my $dbh = C4::Context->dbh; -$dbh->{AutoCommit} = 0; +my $database = Koha::Database->new(); +my $schema = $database->schema(); +$schema->storage->txn_begin(); $dbh->{RaiseError} = 1; my $categorycode = Koha::Database->new()->schema()->resultset('Category')->first()->categorycode(); @@ -71,4 +73,5 @@ $borrower = Koha::Database->new()->schema()->resultset('Borrower')->find( $borro ok( ! $borrower, "Object no longer found in database" ); is( $object->in_storage, 0, "Object is not in storage" ); +$schema->storage->txn_rollback(); 1; --