X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2FRis.t;h=c11b1f59b5aefd0c0bb01f1e46ae9d2650f38f31;hb=fcd6bdc5b8ed5cd48b19d03a86e2ab9aaa0b0626;hp=30157e45443dd1e98ccdecdab199c30753c90b01;hpb=80be4c65e6b524ab430f5b96a02ce6c1650ec59f;p=koha.git diff --git a/t/Ris.t b/t/Ris.t index 30157e4544..c11b1f59b5 100755 --- a/t/Ris.t +++ b/t/Ris.t @@ -3,12 +3,17 @@ # This Koha test module is a stub! # Add more tests here!!! -use strict; -use warnings; +use Modern::Perl; -use Test::More tests => 1; +use t::lib::Mocks; +use Test::More tests => 4; BEGIN { - use_ok('C4::Ris'); + use_ok('C4::Ris'); } +t::lib::Mocks::mock_preference('marcflavour', 'MARC21'); +is(C4::Ris::print_typetag(),undef,'test printing typetag'); +is(C4::Ris::print_title(),undef, 'test printing title when print_title is nil'); + +is(C4::Ris::print_stitle(),undef, 'test printing info from series title field when its nil');