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 135-146
is( $sub_1->{numberpattern},
Link Here
|
135 |
|
134 |
|
136 |
my $ref = { |
135 |
my $ref = { |
137 |
'title' => $biblio_1->{title}, |
136 |
'title' => $biblio_1->{title}, |
138 |
'notes' => $sub_1->{notes}, |
|
|
139 |
'sfdescription' => $sub_freq_1->{description}, |
137 |
'sfdescription' => $sub_freq_1->{description}, |
140 |
'displayorder' => $sub_freq_1->{displayorder}, |
|
|
141 |
'unit' => $sub_freq_1->{unit}, |
138 |
'unit' => $sub_freq_1->{unit}, |
142 |
'unitsperissue' => $sub_freq_1->{unitsperissue}, |
139 |
'unitsperissue' => $sub_freq_1->{unitsperissue}, |
143 |
'issuesperunit' => $sub_freq_1->{issuesperunit}, |
140 |
'issuesperunit' => $sub_freq_1->{issuesperunit}, |
|
|
141 |
'label' => $sub_np_1->{label}, |
144 |
'sndescription' => $sub_np_1->{description}, |
142 |
'sndescription' => $sub_np_1->{description}, |
145 |
'numberingmethod' => $sub_np_1->{numberingmethod}, |
143 |
'numberingmethod' => $sub_np_1->{numberingmethod}, |
146 |
'label1' => $sub_np_1->{label1}, |
144 |
'label1' => $sub_np_1->{label1}, |
Lines 166-172
my $ref = {
Link Here
|
166 |
'publishercode' => $bi_1->{publishercode} |
164 |
'publishercode' => $bi_1->{publishercode} |
167 |
}; |
165 |
}; |
168 |
|
166 |
|
169 |
is_deeply( Koha::Subscription::get_sharable_info( $sub_1->{subscriptionid} ), |
167 |
is_deeply( Koha::Subscription->get_sharable_info( $sub_1->{subscriptionid} ), |
170 |
$ref, "get_sharable_info function is ok" ); |
168 |
$ref, "get_sharable_info function is ok" ); |
171 |
|
169 |
|
172 |
$schema->storage->txn_rollback; |
170 |
$schema->storage->txn_rollback; |
173 |
- |
|
|