/** * Test for method isAttributeParticular() */ public function testIsAttributeParticular() { $attributeCode = 'test'; $property = new \ReflectionProperty($this->_model, '_specialAttributes'); $property->setAccessible(true); $property->setValue($this->_model, [$attributeCode]); $this->assertTrue($this->_model->isAttributeParticular($attributeCode)); }
/** * Is attribute contains particular data (not plain customer attribute) * * @param string $attributeCode * @return bool */ public function isAttributeParticular($attributeCode) { if (in_array(str_replace(self::COLUMN_ADDRESS_PREFIX, '', $attributeCode), $this->_addressAttributes)) { return true; } else { return parent::isAttributeParticular($attributeCode); } }