Koha/t/db_dependent/Installer.t
Galen Charlton 19b5ea868b Bug 11541: (follow-up) move Installer.t to t/db_dependent
This test requires a valid Koha context, so this patch
moves it to t/db_dependent.

To test:

[1] Verify that prove -v t/db_dependent/Installer.t passes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-01-14 21:43:56 +00:00

23 lines
866 B
Perl

#!/usr/bin/perl
#
# This Koha test module is a stub!
# Add more tests here!!!
# Bug 11541
use strict;
use warnings;
use Test::More tests => 9;
BEGIN {
use_ok('C4::Installer');
}
ok ( my $installer = C4::Installer->new(), 'Testing NewInstaller' );
is ( ref $installer, 'C4::Installer', 'Testing class of object' );
is ( $installer->{'dbname'}, C4::Context->config("database"), 'Testing DbName' );
is ( $installer->{'dbms'}, C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql", 'Testing DbScheme' );
is ( $installer->{'hostname'}, C4::Context->config("hostname"), 'Testing Hostname' );
is ( $installer->{'port'}, C4::Context->config("port"), 'Testing Port' );
is ( $installer->{'user'}, C4::Context->config("user"), 'Testing User' );
is ( $installer->{'password'}, C4::Context->config("pass"), 'Testing Password' );