public function SmsFrameworkSettingsTest::testVerificationPathInvalid in SMS Framework 2.x
Same name and namespace in other branches
- 8 tests/src/Functional/SmsFrameworkSettingsTest.php \Drupal\Tests\sms\Functional\SmsFrameworkSettingsTest::testVerificationPathInvalid()
- 2.1.x tests/src/Functional/SmsFrameworkSettingsTest.php \Drupal\Tests\sms\Functional\SmsFrameworkSettingsTest::testVerificationPathInvalid()
Test changing verification path.
File
- tests/
src/ Functional/ SmsFrameworkSettingsTest.php, line 51
Class
- SmsFrameworkSettingsTest
- Tests SMS Framework settings form.
Namespace
Drupal\Tests\sms\FunctionalCode
public function testVerificationPathInvalid() {
// Test invalid path.
$edit['pages[verify]'] = $this
->randomMachineName() . '/' . $this
->randomMachineName();
$this
->drupalPostForm(Url::fromRoute('sms.settings'), $edit, 'Save configuration');
$this
->assertRaw(t("Path must begin with a '/' character."));
}