Bugzilla – Attachment 25101 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.14 KB, created by
Julian Maurice
on 2014-02-06 16:15:58 UTC
(
hide
)
Description:
Bug 11701: Unit tests for C4::Context::Zconn
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2014-02-06 16:15:58 UTC
Size:
1.14 KB
patch
obsolete
>From 8708bafb47d98e0fba152ae8d501efb9460ea552 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 > >--- > t/Context.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/Context.t b/t/Context.t >index 446e254..9176693 100755 >--- a/t/Context.t >+++ b/t/Context.t >@@ -2,7 +2,7 @@ > > use Modern::Perl; > use DBI; >-use Test::More tests => 10; >+use Test::More tests => 12; > use Test::MockModule; > > BEGIN { >@@ -35,3 +35,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