You are here

protected function SmsFrameworkTokenTest::setUp in SMS Framework 2.1.x

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

Overrides SmsFrameworkKernelBase::setUp

File

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

Class

SmsFrameworkTokenTest
Tests SMS Framework tokens.

Namespace

Drupal\Tests\sms\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->tokenService = $this->container
    ->get('token');
  $this
    ->installConfig([
    'system',
  ]);
  \Drupal::service('router.builder')
    ->rebuild();
}