Bug 17600: Standardize our EXPORT_OK
[srvgit] / t / SMS.t
diff --git a/t/SMS.t b/t/SMS.t
index 9901858..bf8de65 100755 (executable)
--- a/t/SMS.t
+++ b/t/SMS.t
@@ -22,7 +22,7 @@ use t::lib::Mocks;
 use Test::More tests => 7;
 
 BEGIN {
-    use_ok('C4::SMS');
+    use_ok('C4::SMS', qw( driver send_sms ));
 }
 
 
@@ -30,6 +30,8 @@ my $driver = 'my mock driver';
 t::lib::Mocks::mock_preference('SMSSendDriver', $driver);
 is( C4::SMS->driver(), $driver, 'driver returns the SMSSendDriver correctly' );
 
+t::lib::Mocks::mock_preference('SMSSendUsername', 'username');
+t::lib::Mocks::mock_preference('SMSSendPassword', 'pwd');
 
 my $send_sms = C4::SMS->send_sms();
 is( $send_sms, undef, 'send_sms without arguments returns undef' );
@@ -58,4 +60,3 @@ $send_sms = C4::SMS->send_sms({
 });
 is( $send_sms, 1, 'send_sms returns 1' );
 
-1;