/** * {@inheritDoc} */ public function setDefaultOptions(OptionsResolverInterface $resolver) { $choices = []; foreach (SharingType::getTypes() as $type) { $choices[$type] = 'orob2b.attribute.sharing_type.' . $type; } $resolver->setDefaults(['empty_value' => false, 'choices' => $choices]); }
public function testConstructAndGetType() { $this->assertEquals([SharingType::GENERAL, SharingType::GROUP, SharingType::WEBSITE], SharingType::getTypes()); }