/** * Test for method filterAttributeCollection() */ public function testFilterAttributeCollection() { /** @var $collection Mage_Customer_Model_Resource_Attribute_Collection */ $collection = $this->_model->getAttributeCollection(); $collection = $this->_model->filterAttributeCollection($collection); /** * Check that disabled attributes is not existed in attribute collection */ $existedAttributes = array(); /** @var $attribute Mage_Customer_Model_Attribute */ foreach ($collection as $attribute) { $existedAttributes[] = $attribute->getAttributeCode(); } }