From a9377e9a64718a383aec7ee4ad32bc260381160b Mon Sep 17 00:00:00 2001 From: Julian Maurice 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 Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton (cherry picked from commit fed353edbc375ae9813fe251ea103e18aacb0587) Signed-off-by: Fridolin Somers Conflicts: t/Context.t --- t/Context.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/Context.t b/t/Context.t index 12d1675781..b9f9116c77 100755 --- a/t/Context.t +++ b/t/Context.t @@ -2,9 +2,14 @@ use strict; use warnings; use DBI; -use Test::More tests => 1; +use Test::More tests => 3; use Test::MockModule; BEGIN { use_ok('C4::Context'); } + +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"); -- 2.39.5