Bug 20291: (follow-up) Add sysprefs.sql changes
[koha.git] / t / Koha_Util_FrameworkPlugin.t
bloba30e3e79d54d96a09734880e69bbf33a0b26acc0
1 #!/usr/bin/perl
3 use Modern::Perl;
4 use Test::More tests => 7;
6 use_ok( 'Koha::Util::FrameworkPlugin', qw(wrapper date_entered) );
8 my $char;
9 is($char=wrapper(' '),'space',"Return space");
10 is($char=wrapper(' '),'dblspace',"Return dblspace");
11 is($char=wrapper('|'),'pipe',"Return pipe");
12 is($char=wrapper('||'),'dblpipe',"Return dblpipe");
13 is($char=wrapper('somethingelse'),'somethingelse',"Return somethingelse");
15 my $f008= date_entered();
16 is( $f008 =~ /^\d{6}$/, 1, 'date_entered gives six digits' );