function TokenTest::testResetInfo

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Utility/TokenTest.php \Drupal\Tests\Core\Utility\TokenTest::testResetInfo()
  2. 8.9.x core/tests/Drupal/Tests/Core/Utility/TokenTest.php \Drupal\Tests\Core\Utility\TokenTest::testResetInfo()
  3. 11.x core/tests/Drupal/Tests/Core/Utility/TokenTest.php \Drupal\Tests\Core\Utility\TokenTest::testResetInfo()

@covers ::resetInfo

File

core/tests/Drupal/Tests/Core/Utility/TokenTest.php, line 258

Class

TokenTest
@coversDefaultClass \Drupal\Core\Utility\Token[[api-linebreak]] @group Utility

Namespace

Drupal\Tests\Core\Utility

Code

public function testResetInfo() : void {
  $this->cacheTagsInvalidator
    ->expects($this->once())
    ->method('invalidateTags')
    ->with([
    'token_info',
  ]);
  $this->token
    ->resetInfo();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.