Lines 18-23
Link Here
|
18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
19 |
|
19 |
|
20 |
use Test::More tests => 32; |
20 |
use Test::More tests => 32; |
|
|
21 |
use DateTime::Duration; |
21 |
|
22 |
|
22 |
use t::lib::Mocks; |
23 |
use t::lib::Mocks; |
23 |
use t::lib::TestBuilder; |
24 |
use t::lib::TestBuilder; |
Lines 32-43
use Koha::Database;
Link Here
|
32 |
use Koha::DateUtils; |
33 |
use Koha::DateUtils; |
33 |
use Koha::Library; |
34 |
use Koha::Library; |
34 |
|
35 |
|
35 |
use DateTime::Duration; |
|
|
36 |
|
37 |
|
38 |
BEGIN { |
36 |
BEGIN { |
39 |
use_ok('C4::Circulation'); |
37 |
require_ok('C4::Circulation'); |
40 |
} |
38 |
} |
|
|
39 |
|
41 |
can_ok( |
40 |
can_ok( |
42 |
'C4::Circulation', |
41 |
'C4::Circulation', |
43 |
qw(AddIssue |
42 |
qw(AddIssue |
Lines 55-64
can_ok(
Link Here
|
55 |
) |
54 |
) |
56 |
); |
55 |
); |
57 |
|
56 |
|
58 |
my $dbh = C4::Context->dbh; |
|
|
59 |
my $schema = Koha::Database->schema; |
60 |
#Start transaction |
57 |
#Start transaction |
|
|
58 |
my $schema = Koha::Database->schema; |
61 |
$schema->storage->txn_begin; |
59 |
$schema->storage->txn_begin; |
|
|
60 |
my $dbh = C4::Context->dbh; |
62 |
|
61 |
|
63 |
my $builder = t::lib::TestBuilder->new(); |
62 |
my $builder = t::lib::TestBuilder->new(); |
64 |
|
63 |
|
65 |
- |
|
|