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

(-)a/t/db_dependent/Borrower.t (-2 / +4 lines)
Lines 30-36 BEGIN { Link Here
30
30
31
# Start transaction
31
# Start transaction
32
my $dbh = C4::Context->dbh;
32
my $dbh = C4::Context->dbh;
33
$dbh->{AutoCommit} = 0;
33
my $database = Koha::Database->new();
34
my $schema = $database->schema();
35
$schema->storage->txn_begin();
34
$dbh->{RaiseError} = 1;
36
$dbh->{RaiseError} = 1;
35
37
36
my $categorycode = Koha::Database->new()->schema()->resultset('Category')->first()->categorycode();
38
my $categorycode = Koha::Database->new()->schema()->resultset('Category')->first()->categorycode();
Lines 71-74 $borrower = Koha::Database->new()->schema()->resultset('Borrower')->find( $borro Link Here
71
ok( ! $borrower, "Object no longer found in database" );
73
ok( ! $borrower, "Object no longer found in database" );
72
is( $object->in_storage, 0, "Object is not in storage" );
74
is( $object->in_storage, 0, "Object is not in storage" );
73
75
76
$schema->storage->txn_rollback();
74
1;
77
1;
75
- 

Return to bug 14334