Lines 1-14
Link Here
|
1 |
#!/usr/bin/perl |
1 |
#!/usr/bin/perl |
|
|
2 |
|
3 |
# This file is part of Koha. |
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. |
2 |
# |
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>. |
3 |
|
17 |
|
4 |
use strict; |
18 |
use Modern::Perl; |
5 |
use warnings; |
|
|
6 |
|
19 |
|
7 |
use Test::More tests => 26; |
20 |
use Test::More tests => 26; |
|
|
21 |
use t::lib::Mocks; |
22 |
|
8 |
C4::Context->_new_userenv(123456); |
23 |
C4::Context->_new_userenv(123456); |
9 |
C4::Context->set_userenv(1,'kmkale' , 1, 'kk1' , 'IMS', 0, 'kmkale@anantcorp.com'); |
24 |
C4::Context->set_userenv(1,'kmkale' , 1, 'kk1' , 'IMS', 0, 'kmkale@anantcorp.com'); |
10 |
|
25 |
|
11 |
BEGIN { |
26 |
BEGIN { |
|
|
27 |
# Mock the DB connexion and C4::Context |
28 |
my $context = t::lib::Mocks::mock_dbh; |
12 |
use_ok('C4::Circulation'); |
29 |
use_ok('C4::Circulation'); |
13 |
} |
30 |
} |
14 |
|
31 |
|
15 |
- |
|
|