Merge remote-tracking branch 'origin/new/bug_7284'
authorPaul Poulain <paul.poulain@biblibre.com>
Wed, 4 Apr 2012 16:18:26 +0000 (18:18 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 4 Apr 2012 16:18:26 +0000 (18:18 +0200)
1  2 
t/db_dependent/Heading_MARC21.t

index 0000000,198eaea..0e1f1c9
mode 000000,100755..100755
--- /dev/null
@@@ -1,0 -1,18 +1,22 @@@
 -my $field = MARC::Field->new( '650', ' ', '0', a => 'Uncles', x => 'Fiction' );
 -my $heading = C4::Heading->new_from_bib_field($field);
 -is($heading->display_form(), 'Uncles--Fiction', 'Display form generation');
 -is($heading->search_form(), 'Uncles generalsubdiv Fiction', 'Search form generation');
+ #!/usr/bin/perl
+ #
+ # This Koha test module is a stub!  
+ # Add more tests here!!!
+ use strict;
+ use warnings;
+ use Test::More tests => 3;
++use C4::Context;
+ BEGIN {
+         use_ok('C4::Heading');
+ }
++SKIP: {
++    skip "MARC21 heading tests not applicable to UNIMARC", 2 if C4::Context->preference('marcflavour') eq 'UNIMARC';
++    my $field = MARC::Field->new( '650', ' ', '0', a => 'Uncles', x => 'Fiction' );
++    my $heading = C4::Heading->new_from_bib_field($field);
++    is($heading->display_form(), 'Uncles--Fiction', 'Display form generation');
++    is($heading->search_form(), 'Uncles generalsubdiv Fiction', 'Search form generation');
++}