|
Lines 31-37
use t::lib::TestBuilder;
Link Here
|
| 31 |
|
31 |
|
| 32 |
my $schema = Koha::Database->new->schema; |
32 |
my $schema = Koha::Database->new->schema; |
| 33 |
$schema->storage->txn_begin; |
33 |
$schema->storage->txn_begin; |
| 34 |
my $builder = t::lib::TestBuilder->new; |
|
|
| 35 |
|
34 |
|
| 36 |
use_ok('Koha::Subscription'); |
35 |
use_ok('Koha::Subscription'); |
| 37 |
|
36 |
|
|
Lines 150-155
my $ref = {
Link Here
|
| 150 |
'unit' => $sub_freq_1->{unit}, |
149 |
'unit' => $sub_freq_1->{unit}, |
| 151 |
'unitsperissue' => $sub_freq_1->{unitsperissue}, |
150 |
'unitsperissue' => $sub_freq_1->{unitsperissue}, |
| 152 |
'issuesperunit' => $sub_freq_1->{issuesperunit}, |
151 |
'issuesperunit' => $sub_freq_1->{issuesperunit}, |
|
|
152 |
'label' => $sub_np_1->{label}, |
| 153 |
'sndescription' => $sub_np_1->{description}, |
153 |
'sndescription' => $sub_np_1->{description}, |
| 154 |
'numberingmethod' => $sub_np_1->{numberingmethod}, |
154 |
'numberingmethod' => $sub_np_1->{numberingmethod}, |
| 155 |
'label' => $sub_np_1->{label}, |
155 |
'label' => $sub_np_1->{label}, |
|
Lines 176-182
my $ref = {
Link Here
|
| 176 |
'publishercode' => $bi_1->{publishercode} |
176 |
'publishercode' => $bi_1->{publishercode} |
| 177 |
}; |
177 |
}; |
| 178 |
|
178 |
|
| 179 |
is_deeply( Koha::Subscription::get_sharable_info( $sub_1->{subscriptionid} ), |
179 |
is_deeply( Koha::Subscription->get_sharable_info( $sub_1->{subscriptionid} ), |
| 180 |
$ref, "get_sharable_info function is ok" ); |
180 |
$ref, "get_sharable_info function is ok" ); |
| 181 |
|
181 |
|
| 182 |
$schema->storage->txn_rollback; |
182 |
$schema->storage->txn_rollback; |
| 183 |
- |
|
|