You are here

function DateTest::testDateTokens in Token 8

File

tests/src/Kernel/DateTest.php, line 27

Class

DateTest
Tests date tokens.

Namespace

Drupal\Tests\token\Kernel

Code

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