You are here

function PathautoTestHelper::assertToken in Pathauto 6

Same name and namespace in other branches
  1. 6.2 pathauto.test \PathautoTestHelper::assertToken()
  2. 7 pathauto.test \PathautoTestHelper::assertToken()
2 calls to PathautoTestHelper::assertToken()
PathautoBookTokenTestCase::testBookPathAlias in ./pathauto.test
PathautoTaxonomyTokenTestCase::testTermTokens in ./pathauto.test
Test the [termpath] token.

File

./pathauto.test, line 22
Functionality tests for Pathauto.

Class

PathautoTestHelper
Helper test class with some added functions for testing.

Code

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