Lines 144-150
is_deeply(
Link Here
|
144 |
); |
144 |
); |
145 |
|
145 |
|
146 |
subtest 'search_by_*_field + find_by_koha_field + get_description + authorised_values' => sub { |
146 |
subtest 'search_by_*_field + find_by_koha_field + get_description + authorised_values' => sub { |
147 |
plan tests => 6; |
147 |
plan tests => 7; |
148 |
|
148 |
|
149 |
my $test_cat = Koha::AuthorisedValueCategories->find('TEST'); |
149 |
my $test_cat = Koha::AuthorisedValueCategories->find('TEST'); |
150 |
$test_cat->delete if $test_cat; |
150 |
$test_cat->delete if $test_cat; |
Lines 252-257
subtest 'search_by_*_field + find_by_koha_field + get_description + authorised_v
Link Here
|
252 |
], |
252 |
], |
253 |
); |
253 |
); |
254 |
}; |
254 |
}; |
|
|
255 |
|
256 |
subtest 'get_descriptions_by_marc_field' => sub { |
257 |
plan tests => 1; |
258 |
my $descriptions = Koha::AuthorisedValues->get_descriptions_by_marc_field( |
259 |
{ frameworkcode => '', tagfield => '952', tagsubfield => 'c' } ); |
260 |
is_deeply( |
261 |
$descriptions, |
262 |
{ |
263 |
'location_1' => 'location_1', |
264 |
'location_2' => 'location_2', |
265 |
'location_3' => 'location_3', |
266 |
}, |
267 |
); |
268 |
}; |
269 |
|
255 |
subtest 'authorised_values' => sub { |
270 |
subtest 'authorised_values' => sub { |
256 |
|
271 |
|
257 |
plan tests => 2; |
272 |
plan tests => 2; |
258 |
- |
|
|