Koha/t/Ris.t
Jonathan Druart 023384811f Bug 16668: Fix t/Ris.t tests
Caused by bug 16442.
Now we need to mock the marcflavour pref

Test plan:
  prove t/Ris.t
should return green

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-06-10 16:59:20 +00:00

19 lines
474 B
Perl
Executable file

#!/usr/bin/perl
#
# This Koha test module is a stub!
# Add more tests here!!!
use Modern::Perl;
use t::lib::Mocks;
use Test::More tests => 4;
BEGIN {
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');