} /**
* @dataProvider contextHashProvider
*/
public function testContextHash(SalesChannelContext
$compared): void
{ $generator =
new EntityCacheKeyGenerator();
static::
assertNotEquals( $generator->
getSalesChannelContextHash(new DummyContext(),
['test'
]),
$generator->
getSalesChannelContextHash($compared,
['test'
]) );
} public static function contextHashProvider(): \Generator
{ yield 'tax state considered for hash' =>
[ (new DummyContext())->
setTaxStateFluent(CartPrice::TAX_STATE_NET
),
];
yield 'currency id considered for hash' =>
[ (