Bug 15839: Koha::Reviews - Add Koha::Review[s] classes
[koha.git] / t / db_dependent / Installer.t
1 #!/usr/bin/perl
2 #
3 # This Koha test module is a stub!
4 # Add more tests here!!!
5 # Bug 11541
6
7 use strict;
8 use warnings;
9
10 use Test::More tests => 9;
11
12 BEGIN {
13         use_ok('C4::Installer');
14 }
15
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' );