Bugzilla – Attachment 24264 Details for
Bug 11541
Increasing test coverage for C4::Installer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11541: Increasing coverage of Installer.pm
Bug-11541-Increasing-coverage-of-Installerpm.patch (text/plain), 1.47 KB, created by
Francesca
on 2014-01-14 02:37:31 UTC
(
hide
)
Description:
Bug 11541: Increasing coverage of Installer.pm
Filename:
MIME Type:
Creator:
Francesca
Created:
2014-01-14 02:37:31 UTC
Size:
1.47 KB
patch
obsolete
>From f093b774a9009ed7140404a5deb345d6e0d492e1 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 14 Jan 2014 14:18:36 +1300 >Subject: [PATCH] Bug 11541: Increasing coverage of Installer.pm > >To test >1. Run prove t/Installer.t >2. Apply patch >3. Run prove t/Installer.t > Notice more tests are run > >Signed-off-by: Francesca Moore <francescalamoore@gmail.com> >--- > t/Installer.t | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 t/Installer.t > >diff --git a/t/Installer.t b/t/Installer.t >new file mode 100644 >index 0000000..9bcd47f >--- /dev/null >+++ b/t/Installer.t >@@ -0,0 +1,24 @@ >+#!/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' ); >+ok ( my $class = {shift}, 'Testing Shift' ); >+ok ( my $self->{'dbname'} = C4::Context->config("database"), 'Testing DbName' ); >+ok ( my $self->{'dbms'} = C4::Context->config("db_scheme") ? C4::Context->config("db_scheme") : "mysql", 'Testing DbScheme' ); >+ok ( my $self->{'hostname'} = C4::Context->config("hostname"), 'Testing Hostname' ); >+ok ( my $self->{'port'} = C4::Context->config("port"), 'Testing Port' ); >+ok ( my $self->{'user'} = C4::Context->config("user"), 'Testing User' ); >+ok ( my $self->{'password'} = C4::Context->config("pass"), 'Testing Password' ); >+ >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11541
:
24250
|
24264
|
24297
|
24299
|
24303
|
24306
|
24314
|
24315