|
Lines 18-24
Link Here
|
| 18 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
18 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
| 19 |
|
19 |
|
| 20 |
use Modern::Perl; |
20 |
use Modern::Perl; |
| 21 |
use Test::More tests => 65; |
21 |
use Test::More tests => 66; |
| 22 |
use Test::MockModule; |
22 |
use Test::MockModule; |
| 23 |
use Test::Warn; |
23 |
use Test::Warn; |
| 24 |
|
24 |
|
|
Lines 136-141
is(
Link Here
|
| 136 |
'message marked failed if tried to send SMS message for borrower with no smsalertnumber set (bug 11208)' |
136 |
'message marked failed if tried to send SMS message for borrower with no smsalertnumber set (bug 11208)' |
| 137 |
); |
137 |
); |
| 138 |
|
138 |
|
|
|
139 |
# ResendMessage |
| 140 |
C4::Letters::ResendMessage($messages->[0]->{message_id}); |
| 141 |
$messages = C4::Letters::GetQueuedMessages({ borrowernumber => $borrowernumber }); |
| 142 |
is($messages->[0]->{status},'pending', 'ResendMessage sets status to pending correctly (bug 12426)'); |
| 143 |
|
| 139 |
# GetLetters |
144 |
# GetLetters |
| 140 |
my $letters = C4::Letters::GetLetters(); |
145 |
my $letters = C4::Letters::GetLetters(); |
| 141 |
is( @$letters, 0, 'GetLetters returns the correct number of letters' ); |
146 |
is( @$letters, 0, 'GetLetters returns the correct number of letters' ); |
| 142 |
- |
|
|