function TokenTest::testResetInfo
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Utility/TokenTest.php \Drupal\Tests\Core\Utility\TokenTest::testResetInfo()
- 10 core/tests/Drupal/Tests/Core/Utility/TokenTest.php \Drupal\Tests\Core\Utility\TokenTest::testResetInfo()
- 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 254
Class
- TokenTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Utility%21Token.php/class/Token/8.9.x" title="Drupal placeholder/token replacement system." class="local">\Drupal\Core\Utility\Token</a> @group Utility
Namespace
Drupal\Tests\Core\UtilityCode
public function testResetInfo() {
$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.