Bug 11541: (follow-up) move Installer.t to t/db_dependent
authorGalen Charlton <gmc@esilibrary.com>
Tue, 14 Jan 2014 21:43:56 +0000 (21:43 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 14 Jan 2014 21:43:56 +0000 (21:43 +0000)
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>
t/Installer.t [deleted file]
t/db_dependent/Installer.t [new file with mode: 0644]

diff --git a/t/Installer.t b/t/Installer.t
deleted file mode 100644 (file)
index 1fc9fc4..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/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' );
diff --git a/t/db_dependent/Installer.t b/t/db_dependent/Installer.t
new file mode 100644 (file)
index 0000000..1fc9fc4
--- /dev/null
@@ -0,0 +1,23 @@
+#!/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' );