public function SmsFrameworkWebTest::testGatewayConfiguration in SMS Framework 7
Tests configuring a specific gateway.
File
- tests/
sms.module.test, line 54 - Contains tests for the functions in sms.module and core sms framework.
Class
- SmsFrameworkWebTest
- Provides integration tests for the SMS Framework.
Code
public function testGatewayConfiguration() {
$edit = array(
'username' => 'test',
'password' => 'testword',
'server' => 'test.example.com/api',
'method' => 0,
'ssl' => false,
);
$this
->drupalPost('admin/smsframework/gateways/test', $edit, t('Save'));
$this
->assertResponse(200);
$gateway = sms_gateways('gateway', 'test');
$this
->assertEqual($edit, $gateway['configuration'], 'SMS Test gateway successfully configured.');
}