Bugzilla – Attachment 26506 Details for
Bug 11701
Fix C4::Context::Zconn
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11701: Unit tests for C4::Context::Zconn
Bug-11701-Unit-tests-for-C4ContextZconn.patch (text/plain), 1.36 KB, created by
Jonathan Druart
on 2014-03-21 09:49:11 UTC
(
hide
)
Description:
Bug 11701: Unit tests for C4::Context::Zconn
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-03-21 09:49:11 UTC
Size:
1.36 KB
patch
obsolete
>From 3db803acc90117dea593677f1a4b2e1faa7b0bfa Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 6 Feb 2014 17:09:50 +0100 >Subject: [PATCH] Bug 11701: Unit tests for C4::Context::Zconn > >TEST PLAN >--------- >1) apply patch >2) run koha qa test tool >3) prove -v t/Context.t > >Unit tests ran as expected. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > t/Context.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/Context.t b/t/Context.t >index 6775b8e..9bad321 100755 >--- a/t/Context.t >+++ b/t/Context.t >@@ -2,7 +2,7 @@ > > use Modern::Perl; > use DBI; >-use Test::More tests => 14; >+use Test::More tests => 16; > use Test::MockModule; > > BEGIN { >@@ -45,3 +45,8 @@ is(C4::Context::db_scheme2dbi('mysql'), 'mysql', 'ask for mysql, get mysql'); > is(C4::Context::db_scheme2dbi('Pg'), 'Pg', 'ask for Pg, get Pg'); > is(C4::Context::db_scheme2dbi('xxx'), 'mysql', 'ask for unsupported DBMS, get mysql'); > is(C4::Context::db_scheme2dbi(), 'mysql', 'ask for nothing, get mysql'); >+ >+my $oConnection = C4::Context->Zconn('biblioserver', 0); >+isnt($oConnection->option('async'), 1, "ZOOM connection is synchronous"); >+$oConnection = C4::Context->Zconn('biblioserver', 1); >+is($oConnection->option('async'), 1, "ZOOM connection is asynchronous"); >-- >1.7.10.4
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 11701
:
25101
|
25102
|
25439
|
26328
|
26329
|
26361
|
26362
| 26506 |
26507