Added unit test for AuthoritiesMarc/UNIMARC.pm
authorDuncan Tyler <duncan@duncan-SoT.wgtn.cat-it.co.nz>
Thu, 8 Dec 2011 19:52:34 +0000 (08:52 +1300)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 15 Dec 2011 12:41:41 +0000 (13:41 +0100)
http://bugs.koha-community.org/show_bug.cgi?id=5327
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Test passes.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
t/AuthoritiesMarc_UNIMARC.t

index 0a55cd6..4d26f39 100755 (executable)
@@ -6,9 +6,11 @@
 use strict;
 use warnings;
 
-use Test::More tests => 1;
+use Test::More tests => 2;
 
 BEGIN {
         use_ok('C4::AuthoritiesMarc::UNIMARC');
 }
 
+my @test = C4::AuthoritiesMarc::UNIMARC::default_auth_type_location();
+ok(($test[0] == 152) && ($test[1] eq 'b'), "correct variables being returned");