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

(-)a/t/db_dependent/Barcodes.t (-5 / +5 lines)
Lines 32-48 BEGIN { Link Here
32
    use_ok('C4::Barcodes');
32
    use_ok('C4::Barcodes');
33
}
33
}
34
34
35
my $schema  = Koha::Database->new->schema;
36
$schema->storage->txn_begin;
37
38
my $builder = t::lib::TestBuilder->new;
35
my $builder = t::lib::TestBuilder->new;
39
36
40
my $dbh = C4::Context->dbh;
37
my $schema  = Koha::Database->new->schema;
41
38
42
subtest 'Test generation of annual barcodes from DB values' => sub {
39
subtest 'Test generation of annual barcodes from DB values' => sub {
43
40
44
    plan tests => 4;
41
    plan tests => 4;
45
42
43
    $schema->storage->txn_begin;
46
    $builder->schema->resultset( 'Issue' )->delete_all;
44
    $builder->schema->resultset( 'Issue' )->delete_all;
47
    $builder->schema->resultset( 'Item' )->delete_all;
45
    $builder->schema->resultset( 'Item' )->delete_all;
48
46
Lines 83-88 subtest 'Test generation of annual barcodes from DB values' => sub { Link Here
83
    $schema->storage->txn_rollback;
81
    $schema->storage->txn_rollback;
84
};
82
};
85
83
84
$schema->storage->txn_begin;
86
85
87
$builder->schema->resultset( 'Issue' )->delete_all;
86
$builder->schema->resultset( 'Issue' )->delete_all;
88
$builder->schema->resultset( 'Item' )->delete_all;
87
$builder->schema->resultset( 'Item' )->delete_all;
Lines 171-173 foreach $format (@formats) { Link Here
171
        }
170
        }
172
    }
171
    }
173
}
172
}
174
- 
173
174
$schema->storage->txn_rollback;

Return to bug 16561