@ -319,7 +319,7 @@ class AccessTest extends KernelTestBase {
self::assertSame($expected_content, $build['content']);
$expected_cache = [
'contexts' => ['user'],
'tags' => ['tag_from_blockAccess'],
'tags' => ['tag_from_blockAccess', 'tag_twig_tweak_test_foo_plugin'],
'max-age' => 35,
];
self::assertSame($expected_cache, $build['#cache']);
@ -41,4 +41,11 @@ class FooBlock extends BlockBase {
}
/**
* {@inheritdoc}
*/
public function getCacheTags() {
return ['tag_twig_tweak_test_foo_plugin'];