/**
  * {@inheritdoc}
  */
 public function getAllowAttributes()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getAllowAttributes');
     if (!$pluginInfo) {
         return parent::getAllowAttributes();
     } else {
         return $this->___callPlugins('getAllowAttributes', func_get_args(), $pluginInfo);
     }
 }
Esempio n. 2
0
 public function testGetAllowAttributes()
 {
     $attributes = $this->_block->getAllowAttributes();
     $this->assertInstanceOf('Magento\\ConfigurableProduct\\Model\\Resource\\Product\\Type\\Configurable\\Attribute\\Collection', $attributes);
     $this->assertGreaterThanOrEqual(1, $attributes->getSize());
 }