You are here

function TokenTestHelper::assertToken in Token 7

Same name and namespace in other branches
  1. 6 token.test \TokenTestHelper::assertToken()

File

./token.test, line 23
Test integration for the token module.

Class

TokenTestHelper
Helper test class with some added functions for testing.

Code

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