You are here

public function SmsFrameworkSettingsTest::testVerificationPathInvalid in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/SmsFrameworkSettingsTest.php \Drupal\Tests\sms\Functional\SmsFrameworkSettingsTest::testVerificationPathInvalid()
  2. 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 49

Class

SmsFrameworkSettingsTest
Tests SMS Framework settings form.

Namespace

Drupal\Tests\sms\Functional

Code

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."));
}