Main Koha release repository
https://koha-community.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
492 B
24 lines
492 B
#!/usr/bin/perl
|
|
#
|
|
# This is to test C4/Members
|
|
# It requires a working Koha database with the sample data
|
|
|
|
use Modern::Perl;
|
|
|
|
use Test::More tests => 2;
|
|
|
|
BEGIN {
|
|
use_ok('C4::Members');
|
|
}
|
|
|
|
my @borrowers_columns = C4::Members::columns;
|
|
ok(
|
|
$#borrowers_columns > 1,
|
|
'C4::Member->column returned a reasonable number of columns ('
|
|
. ( $#borrowers_columns + 1 ) . ')'
|
|
)
|
|
or diag(
|
|
'WARNING: Check that the borrowers table exists and has the correct fields defined.'
|
|
);
|
|
|
|
exit;
|
|
|