|
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 => 69; |
21 |
use Test::More tests => 68; |
| 22 |
use Test::MockModule; |
22 |
use Test::MockModule; |
| 23 |
use Test::Warn; |
23 |
use Test::Warn; |
| 24 |
|
24 |
|
|
Lines 141-148
my $resent = C4::Letters::ResendMessage($messages->[0]->{message_id});
Link Here
|
| 141 |
my $message = C4::Letters::GetMessage( $messages->[0]->{message_id}); |
141 |
my $message = C4::Letters::GetMessage( $messages->[0]->{message_id}); |
| 142 |
is( $resent, 1, 'The message should have been resent' ); |
142 |
is( $resent, 1, 'The message should have been resent' ); |
| 143 |
is($message->{status},'pending', 'ResendMessage sets status to pending correctly (bug 12426)'); |
143 |
is($message->{status},'pending', 'ResendMessage sets status to pending correctly (bug 12426)'); |
| 144 |
$resent = C4::Letters::ResendMessage($messages->[0]->{message_id}); |
|
|
| 145 |
is( $resent, 0, 'The message should not have been resent again' ); |
| 146 |
$resent = C4::Letters::ResendMessage(); |
144 |
$resent = C4::Letters::ResendMessage(); |
| 147 |
is( $resent, undef, 'ResendMessage should return undef if not message_id given' ); |
145 |
is( $resent, undef, 'ResendMessage should return undef if not message_id given' ); |
| 148 |
|
146 |
|
| 149 |
- |
|
|