Bug 16699: Remove requirement from borrowernumberQueryParam
[koha.git] / t / db_dependent / Installer.t
blob1fc9fc44be8bdcc515682f3c5496c1a96b0411b7
1 #!/usr/bin/perl
3 # This Koha test module is a stub!
4 # Add more tests here!!!
5 # Bug 11541
7 use strict;
8 use warnings;
10 use Test::More tests => 9;
12 BEGIN {
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' );