Bug 19489: (QA follow-up) Update test to use objects and module methods for creating...
[koha.git] / t / Ris.t
diff --git a/t/Ris.t b/t/Ris.t
index b4126c5..c11b1f5 100755 (executable)
--- a/t/Ris.t
+++ b/t/Ris.t
@@ -3,20 +3,17 @@
 # This Koha test module is a stub!  
 # Add more tests here!!!
 
-use strict;
-use warnings;
+use Modern::Perl;
 
-use Test::More tests => 6;
+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');
-
-ok((C4::Ris::charconv('hello world'))[0] eq 'hello world', 'testing that it returns what you entered');
-ok(C4::Ris::charconv() == 0, 'testing when charconv is nil');