isAllowCartExpose example

'de-DE' => 'Zusatzfeld Test',
        ]$customFieldSet->getLabel());
        static::assertEquals(['product', 'customer']$customFieldSet->getRelatedEntities());
        static::assertTrue($customFieldSet->getGlobal());

        static::assertCount(2, $customFieldSet->getFields());

        $fields = $customFieldSet->getFields();

        static::assertSame('bla_test', $fields[0]->getName());
        static::assertFalse($fields[0]->isAllowCustomerWrite());
        static::assertFalse($fields[0]->isAllowCartExpose());

        static::assertSame('bla_test2', $fields[1]->getName());
        static::assertTrue($fields[1]->isAllowCustomerWrite());
        static::assertTrue($fields[1]->isAllowCartExpose());
    }
}
'de-DE' => 'Zusatzfeld Test',
        ]$customFieldSet->getLabel());
        static::assertEquals(['product', 'customer']$customFieldSet->getRelatedEntities());
        static::assertTrue($customFieldSet->getGlobal());

        static::assertCount(2, $customFieldSet->getFields());

        $fields = $customFieldSet->getFields();

        static::assertSame('bla_test', $fields[0]->getName());
        static::assertFalse($fields[0]->isAllowCustomerWrite());
        static::assertFalse($fields[0]->isAllowCartExpose());

        static::assertSame('bla_test2', $fields[1]->getName());
        static::assertTrue($fields[1]->isAllowCustomerWrite());
        static::assertTrue($fields[1]->isAllowCartExpose());
    }
}
Home | Imprint | This part of the site doesn't use cookies.