public function SmsFrameworkTokenTest::testVerificationCode in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkTokenTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkTokenTest::testVerificationCode()
- 2.1.x tests/src/Kernel/SmsFrameworkTokenTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkTokenTest::testVerificationCode()
Tests verification code token.
Special case token.
File
- tests/
src/ Kernel/ SmsFrameworkTokenTest.php, line 57
Class
- SmsFrameworkTokenTest
- Tests SMS Framework tokens.
Namespace
Drupal\Tests\sms\KernelCode
public function testVerificationCode() {
$data['sms_verification_code'] = $this
->randomMachineName();
$this
->assertEquals($data['sms_verification_code'], $this->tokenService
->replace('[sms-message:verification-code]', $data));
}