/** * Test related method */ public function testGetAttributeAsLabelChoices() { $name = $this->getAttributeMock(); $address = $this->getAttributeMock(); $sku = $this->getAttributeMock('pim_catalog_identifier'); $phone = $this->getAttributeMock('phone'); $this->family->addAttribute($name); $this->family->addAttribute($address); $this->family->addAttribute($sku); $this->family->addAttribute($phone); $this->assertEquals([$name, $address, $sku], $this->family->getAttributeAsLabelChoices()); }
/** * {@inheritDoc} */ public function getAttributeAsLabelChoices() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAttributeAsLabelChoices', array()); return parent::getAttributeAsLabelChoices(); }