Browse Source

Bug 5327 added unit tests for C4/ClassSortRoutine/Generic

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
3.8.x
Connor Dewar 10 years ago
committed by Paul Poulain
parent
commit
995485e574
  1. 12
      t/ClassSortRoutine_Generic.t

12
t/ClassSortRoutine_Generic.t

@ -6,9 +6,19 @@
use strict;
use warnings;
use Test::More tests => 1;
use Test::More tests => 3;
BEGIN {
use_ok('C4::ClassSortRoutine::Generic');
}
my $cn_class = "My class ";
my $cn_item = " hellO";
my $cn_sort = C4::ClassSortRoutine::Generic::get_class_sort_key($cn_class, $cn_item);
is($cn_sort,"MY_CLASS_HELLO","testing cnsort");
$cn_sort = C4::ClassSortRoutine::Generic::get_class_sort_key(undef, undef);
is($cn_sort,"","Testing blank cnsort");
Loading…
Cancel
Save