Bug 25752: Stay in cwd after koha-shell
[koha.git] / t / AuthoritiesMarc_MARC21.t
blobfbf713ac66d19c9a96f2cf5d2909fe908a91a566
1 #!/usr/bin/perl
3 # This Koha test module is a stub!
4 # Add more tests here!!!
6 use strict;
7 use warnings;
9 use Test::More tests => 4;
10 use MARC::Record;
12 BEGIN {
13 use_ok('C4::AuthoritiesMarc::MARC21');
16 my @result = C4::AuthoritiesMarc::MARC21::default_auth_type_location();
17 ok($result[0] eq '942', "testing default_auth_type_location has first value '942'");
18 ok($result[1] eq 'a', "testing default_auth_type_location has first value 'a'");
20 my $marc_record = MARC::Record->new();
21 is(C4::AuthoritiesMarc::MARC21::fix_marc21_auth_type_location($marc_record, '', ''), undef, "testing fix_marc21_auth_type_location returns undef with empty MARC record");