'a.b.c:foo', 'a.b.c'
],
['a.b.c'
]],
// max-age 0 is treated as non-optimizable.
[['a.b.no-optimize', 'a.b', 'a'
],
['a.b.no-optimize', 'a'
]],
];
} /**
* @covers ::convertTokensToKeys
*/
public function testConvertTokensToKeys() { $container =
$this->
getMockContainer();
$cache_contexts_manager =
new CacheContextsManager($container,
$this->
getContextsFixture());
$new_keys =
$cache_contexts_manager->
convertTokensToKeys([ 'foo',
'baz:parameterA',
'baz:parameterB',
]);
$expected =
[ '[baz:parameterA]=cnenzrgreN',
'[baz:parameterB]=cnenzrgreO',