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 |
$dbh->do("DELETE FROM issues"); |
37 |
$dbh->do("DELETE FROM issues"); |
36 |
$dbh->do("DELETE FROM borrowers"); |
38 |
$dbh->do("DELETE FROM borrowers"); |
Lines 93-96
foreach my $b ( $borrowers->as_list() ) {
Link Here
|
93 |
is( $b->categorycode(), $categorycode, "Iteration returns a borrower object" ); |
95 |
is( $b->categorycode(), $categorycode, "Iteration returns a borrower object" ); |
94 |
} |
96 |
} |
95 |
|
97 |
|
|
|
98 |
$schema->storage->txn_rollback(); |
96 |
1; |
99 |
1; |
97 |
- |
|
|