예제 #1
0
 /**
  * @return array
  */
 protected function getChoices()
 {
     $choices = [];
     foreach ($this->registry->getTypes() as $type) {
         $choices[$type->getName()] = 'orob2b.attribute.attribute_type.' . $type->getName();
     }
     return $choices;
 }
 public function testGetTypes()
 {
     $this->assertContains($this->attributeTypeMock, $this->registry->getTypes());
 }