2 #===============================================================================
4 # FILE: NCIP_Configuration.t
11 # AUTHOR: Chris Cormack (rangi), chrisc@catalyst.net.nz
12 # ORGANIZATION: Koha Development Team
14 # CREATED: 28/08/13 10:35:44
16 #===============================================================================
21 use Test::More tests => 4; # last test to print
23 use_ok('NCIP::Configuration');
25 ok( my $config = NCIP::Configuration->new('../t/config_sample'),
26 'Creating a config object' );
28 # because the file is called NCIP.xml we now have that namespace
29 ok( my $server_params = $config->('NCIP.server-params'), 'Get server-params' );
31 is( $server_params->{'min_servers'}, 1, 'Do we have a minimum of one server' );