function HelpTopicTwigTest::testCacheInfo
Same name in other branches
- 9 core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\HelpTopicTwigTest::testCacheInfo()
- 8.9.x core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\HelpTopicTwigTest::testCacheInfo()
- 11.x core/modules/help/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help\Unit\HelpTopicTwigTest::testCacheInfo()
@covers ::getCacheContexts @covers ::getCacheTags @covers ::getCacheMaxAge
File
-
core/
modules/ help/ tests/ src/ Unit/ HelpTopicTwigTest.php, line 88
Class
- HelpTopicTwigTest
- Unit test for the HelpTopicTwig class.
Namespace
Drupal\Tests\help\UnitCode
public function testCacheInfo() : void {
$this->assertEquals([], $this->helpTopic
->getCacheContexts());
$this->assertEquals([
'core.extension',
], $this->helpTopic
->getCacheTags());
$this->assertEquals(Cache::PERMANENT, $this->helpTopic
->getCacheMaxAge());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.