TextCmsElementResolver example

/** * @internal */
class TextTypeDataResolverTest extends TestCase
{
    use KernelTestBehaviour;

    private TextCmsElementResolver $textResolver;

    protected function setUp(): void
    {
        $this->textResolver = new TextCmsElementResolver($this->getContainer()->get(HtmlSanitizer::class));
    }

    public function testType(): void
    {
        static::assertSame('text', $this->textResolver->getType());
    }

    public function testCollectWithEmptyConfig(): void
    {
        $resolverContext = new ResolverContext($this->createMock(SalesChannelContext::class)new Request());

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