|
Lines 1-11
Link Here
|
| 1 |
#!/usr/bin/perl |
1 |
#!/usr/bin/perl |
| 2 |
|
2 |
|
|
|
3 |
# Copyright 2008, 2022 Koha development team |
| 4 |
# |
| 5 |
# Koha is free software; you can redistribute it and/or modify it |
| 6 |
# under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation; either version 3 of the License, or |
| 8 |
# (at your option) any later version. |
| 9 |
# |
| 10 |
# Koha is distributed in the hope that it will be useful, but |
| 11 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
| 17 |
|
| 3 |
use Modern::Perl; |
18 |
use Modern::Perl; |
| 4 |
use Test::More tests => 4; |
19 |
use Test::More tests => 4; |
| 5 |
use Test::MockModule; |
|
|
| 6 |
|
| 7 |
use t::lib::Mocks; |
| 8 |
use t::lib::TestBuilder; |
| 9 |
|
20 |
|
| 10 |
use C4::Context; |
21 |
use C4::Context; |
| 11 |
use Koha::Database; |
22 |
use Koha::Database; |
|
Lines 135-139
subtest 'Zconn' => sub {
Link Here
|
| 135 |
isnt($oConnection->option('async'), 1, "ZOOM connection is synchronous"); |
146 |
isnt($oConnection->option('async'), 1, "ZOOM connection is synchronous"); |
| 136 |
$oConnection = C4::Context->Zconn('biblioserver', 1); |
147 |
$oConnection = C4::Context->Zconn('biblioserver', 1); |
| 137 |
is($oConnection->option('async'), 1, "ZOOM connection is asynchronous"); |
148 |
is($oConnection->option('async'), 1, "ZOOM connection is asynchronous"); |
| 138 |
|
|
|
| 139 |
}; |
149 |
}; |
| 140 |
- |
|
|