function HelpTopicTwigTest::testCacheInfo
Tests cache info.
@legacy-covers ::getCacheContexts @legacy-covers ::getCacheTags @legacy-covers ::getCacheMaxAge
File
-
core/
modules/ help/ tests/ src/ Unit/ HelpTopicTwigTest.php, line 95
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.