You are here

function TokenDateTestCase::testDateTokens in Token 7

File

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

Class

TokenDateTestCase
@todo Remove when http://drupal.org/node/1173706 is fixed.

Code

function testDateTokens() {
  $tokens = array(
    'token_test' => '1984',
    'invalid_format' => NULL,
  );
  $this
    ->assertTokens('date', array(
    'date' => 453859200,
  ), $tokens);
}