/** * @magentoDataFixture Mage/Catalog/controllers/_files/attribute_user_defined.php */ public function testSaveActionApplyToDataUserDefinedAttribute() { $postData = $this->_getAttributeData() + array('attribute_id' => '1'); $this->getRequest()->setPost($postData); $this->dispatch('backend/admin/catalog_product_attribute/save'); $model = new Mage_Catalog_Model_Resource_Eav_Attribute(new Mage_Core_Model_Event_Manager(), new Mage_Core_Model_Cache()); $model->load($postData['attribute_id']); $this->assertEquals('simple,configurable', $model->getData('apply_to')); }