From f087824be5a05789556e11b0fa9f607e63079310 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 25 Jul 2014 10:59:11 +0200 Subject: [PATCH] Bug 12642: t/SMS.t should not be db dependent SMS.t should not dependent on the DB. Test plan: verify that prove t/SMS.t returns green even if the DB is not there. Signed-off-by: Robin Sheat --- t/SMS.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/SMS.t b/t/SMS.t index 9901858..fca44b4 100755 --- a/t/SMS.t +++ b/t/SMS.t @@ -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' ); -- 1.9.1