'#markup' => 'parent',
'child' =>
[ '#cache' =>
[ 'contexts' =>
['bar'
],
'max-age' => 3600,
],
],
];
$this->renderer->
renderRoot($build);
$this->
assertRenderCacheItem('parent:foo',
[ '#cache_redirect' => TRUE,
'#cache' =>
[ 'keys' =>
['parent'
],
'contexts' =>
['foo', 'bar'
],
'tags' =>
[],
'bin' =>
$bin,
'max-age' => 3600,
],
],
$bin);
}