You are here

function TokenTestTrait::assertToken in Token 8

File

tests/src/Functional/TokenTestTrait.php, line 17

Class

TokenTestTrait
Helper test trait with some added functions for testing.

Namespace

Drupal\Tests\token\Functional

Code

function assertToken($type, array $data, $token, $expected, array $options = []) {
  return $this
    ->assertTokens($type, $data, [
    $token => $expected,
  ], $options);
}