Lines 1-12
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. |
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. |
2 |
# |
14 |
# |
3 |
# This Koha test module is a stub! |
15 |
# You should have received a copy of the GNU General Public License |
4 |
# Add more tests here!!! |
16 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
5 |
|
17 |
|
6 |
use Modern::Perl; |
18 |
use Modern::Perl; |
|
|
19 |
|
7 |
use DBI; |
20 |
use DBI; |
8 |
use Test::MockModule; |
21 |
use Test::MockModule; |
9 |
use Test::More tests => 4; |
22 |
use Test::More tests => 5; |
10 |
use t::lib::Mocks; |
23 |
use t::lib::Mocks; |
11 |
my $module = new Test::MockModule('C4::Context'); |
24 |
my $module = new Test::MockModule('C4::Context'); |
12 |
$module->mock( |
25 |
$module->mock( |
Lines 44-46
is( ref($letter), 'HASH');
Link Here
|
44 |
t::lib::Mocks::mock_preference('ReservesMaxPickUpDelay', 1); |
57 |
t::lib::Mocks::mock_preference('ReservesMaxPickUpDelay', 1); |
45 |
$letter = C4::Letters::_parseletter( undef, 'reserves', {waitingdate => "2013-01-01"} ); |
58 |
$letter = C4::Letters::_parseletter( undef, 'reserves', {waitingdate => "2013-01-01"} ); |
46 |
is( ref($letter), 'HASH'); |
59 |
is( ref($letter), 'HASH'); |
47 |
- |
60 |
|
|
|
61 |
1; |