DefinitionRegistryChain example

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($registrynew SalesChannelDefinitionInstanceRegistry('', $mock[][]));
    }
}

/** * @internal */
class ExtendedProductEntity extends ProductEntity
{
    public string $notExposed = 'test';
}

Home | Imprint | This part of the site doesn't use cookies.