You are here

function TokenTestHelper::assertToken in Token 6

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

File

./token.test, line 22
Tests for the token module.

Class

TokenTestHelper
Helper test class with some added functions for testing.

Code

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