static::
assertArrayHasKey(0,
$encoded['lineItems'
]);
static::
assertArrayHasKey('payload',
$encoded['lineItems'
][0
]);
static::
assertIsArray($encoded['lineItems'
][0
]['payload'
]);
static::
assertArrayHasKey('foo',
$encoded['lineItems'
][0
]['payload'
]);
static::
assertArrayNotHasKey('bar',
$encoded['lineItems'
][0
]['payload'
]);
} private function getChainRegistry(StaticDefinitionInstanceRegistry
$registry): DefinitionRegistryChain
{ $mock =
$this->
createMock(ContainerInterface::
class);
return new DefinitionRegistryChain($registry,
new SalesChannelDefinitionInstanceRegistry('',
$mock,
[],
[]));
}}/**
* @internal
*/
class ExtendedProductEntity extends ProductEntity
{ public string
$notExposed = 'test';
}