You are here

public function SmsFrameworkSettingsTest::testSettingsForm in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/SmsFrameworkSettingsTest.php \Drupal\Tests\sms\Functional\SmsFrameworkSettingsTest::testSettingsForm()
  2. 2.1.x tests/src/Functional/SmsFrameworkSettingsTest.php \Drupal\Tests\sms\Functional\SmsFrameworkSettingsTest::testSettingsForm()

Test setting form without gateway.

File

tests/src/Functional/SmsFrameworkSettingsTest.php, line 28

Class

SmsFrameworkSettingsTest
Tests SMS Framework settings form.

Namespace

Drupal\Tests\sms\Functional

Code

public function testSettingsForm() {
  $edit['fallback_gateway'] = '';
  $edit['pages[verify]'] = '/' . $this
    ->randomMachineName();
  $this
    ->drupalPostForm(Url::fromRoute('sms.settings'), $edit, 'Save configuration');
  $this
    ->assertRaw(t('SMS settings saved.'));
}