Koha/t/lib/KohaTest/SMS/send_sms.pm
Andrew Moore 86239ea689 bug 2275: making SMS::Send module optional
I wrapped the use of the SMS::Send module in an eval to make failures graceful if it
is not present.
I also fixed an error with the number of tests in the SMS::Send tests.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-04 09:22:27 -05:00

25 lines
499 B
Perl

package KohaTest::SMS::send_sms;
use base qw( KohaTest::SMS );
use strict;
use warnings;
use Test::More;
use C4::SMS;
sub testing_class { 'C4::SMS' };
sub send_a_message : Test( 1 ) {
my $self = shift;
my $success = C4::SMS->send_sms( { destination => '+1 212-555-1111',
message => 'This is the message',
driver => 'Test' } );
ok( $success, "send_sms returned a true: $success" );
}
1;