3 # This Koha test module is a stub!
4 # Add more tests here!!!
10 use Test
::More tests
=> 9;
13 use_ok
('C4::Installer');
16 ok
( my $installer = C4
::Installer
->new(), 'Testing NewInstaller' );
17 is
( ref $installer, 'C4::Installer', 'Testing class of object' );
18 is
( $installer->{'dbname'}, C4
::Context
->config("database"), 'Testing DbName' );
19 is
( $installer->{'dbms'}, C4
::Context
->config("db_scheme") ? C4
::Context
->config("db_scheme") : "mysql", 'Testing DbScheme' );
20 is
( $installer->{'hostname'}, C4
::Context
->config("hostname"), 'Testing Hostname' );
21 is
( $installer->{'port'}, C4
::Context
->config("port"), 'Testing Port' );
22 is
( $installer->{'user'}, C4
::Context
->config("user"), 'Testing User' );
23 is
( $installer->{'password'}, C4
::Context
->config("pass"), 'Testing Password' );