public function testGetEditableAttributes() { $attributes = $this->_model->getEditableAttributes($this->_product); // applicable to all types $this->assertArrayHasKey('sku', $attributes); $this->assertArrayHasKey('name', $attributes); // applicable to configurable $this->assertArrayHasKey('price', $attributes); // not applicable to configurable $this->assertArrayNotHasKey('weight', $attributes); }