public function SmsFrameworkSettingsTest::testSettingsForm in SMS Framework 2.x
Same name and namespace in other branches
- 8 tests/src/Functional/SmsFrameworkSettingsTest.php \Drupal\Tests\sms\Functional\SmsFrameworkSettingsTest::testSettingsForm()
- 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 30
Class
- SmsFrameworkSettingsTest
- Tests SMS Framework settings form.
Namespace
Drupal\Tests\sms\FunctionalCode
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.'));
}