You are here

public function SmsFrameworkWebTest::testGatewayInfoAlter in SMS Framework 7

File

tests/sms.module.test, line 121
Contains tests for the functions in sms.module and core sms framework.

Class

SmsFrameworkWebTest
Provides integration tests for the SMS Framework.

Code

public function testGatewayInfoAlter() {
  variable_set('GATEWAY_INFO_ALTER_TEST', FALSE);
  $gateway = sms_gateways('gateway', 'test');
  $this
    ->assertFalse(isset($gateway['x-testing']));
  variable_set('GATEWAY_INFO_ALTER_TEST', TRUE);
  $gateway = sms_gateways('gateway', 'test');
  $this
    ->assertEqual($gateway['x-testing'], 'sms_test_gateway_gateway_info_alter');
  variable_del('GATEWAY_INFO_ALTER_TEST');
}