You are here

public function SmsFrameworkTokenTest::testSmsTokens in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/SmsFrameworkTokenTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkTokenTest::testSmsTokens()
  2. 2.1.x tests/src/Kernel/SmsFrameworkTokenTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkTokenTest::testSmsTokens()

Tests 'sms' tokens.

File

tests/src/Kernel/SmsFrameworkTokenTest.php, line 44

Class

SmsFrameworkTokenTest
Tests SMS Framework tokens.

Namespace

Drupal\Tests\sms\Kernel

Code

public function testSmsTokens() {
  $url_options = [
    'absolute' => TRUE,
  ];
  $this
    ->assertEquals(\Drupal::url('sms.phone.verify', [], $url_options), $this->tokenService
    ->replace('[sms:verification-url]'));
}