X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2FAuthoritiesMarc_MARC21.t;h=fbf713ac66d19c9a96f2cf5d2909fe908a91a566;hb=9c5e40e4923179bf0b2b630d3e09797dc4c1fdb0;hp=d83534a5152aa6af02b890820342140d152782e2;hpb=e0892a5139d68249db0c8acec03eae008f850509;p=koha.git diff --git a/t/AuthoritiesMarc_MARC21.t b/t/AuthoritiesMarc_MARC21.t index d83534a515..fbf713ac66 100755 --- a/t/AuthoritiesMarc_MARC21.t +++ b/t/AuthoritiesMarc_MARC21.t @@ -6,9 +6,16 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 4; +use MARC::Record; BEGIN { use_ok('C4::AuthoritiesMarc::MARC21'); } +my @result = C4::AuthoritiesMarc::MARC21::default_auth_type_location(); +ok($result[0] eq '942', "testing default_auth_type_location has first value '942'"); +ok($result[1] eq 'a', "testing default_auth_type_location has first value 'a'"); + +my $marc_record = MARC::Record->new(); +is(C4::AuthoritiesMarc::MARC21::fix_marc21_auth_type_location($marc_record, '', ''), undef, "testing fix_marc21_auth_type_location returns undef with empty MARC record");