Bug 16363: Add floating toolbar to advanced search
[koha.git] / t / ClassSortRoutine_Generic.t
blob128006bff2c3a6d36fb382c24889756b18324660
1 #!/usr/bin/perl
3 # This Koha test module is a stub!
4 # Add more tests here!!!
6 use strict;
7 use warnings;
9 use Test::More tests => 3;
11 BEGIN {
12 use_ok('C4::ClassSortRoutine::Generic');
15 my $cn_class = "My class ";
16 my $cn_item = " hellO";
18 my $cn_sort = C4::ClassSortRoutine::Generic::get_class_sort_key($cn_class, $cn_item);
20 is($cn_sort,"MY_CLASS_HELLO","testing cnsort");
22 $cn_sort = C4::ClassSortRoutine::Generic::get_class_sort_key(undef, undef);
24 is($cn_sort,"","Testing blank cnsort");