/** * @depends testGetConfigurableAttributesAsArray */ public function testGetSelectedAttributesInfo() { $attributes = $this->_model->getConfigurableAttributesAsArray($this->_product); $attribute = reset($attributes); $optionValueId = $attribute['values'][0]['value_index']; $this->_product->addCustomOption('attributes', serialize(array($attribute['attribute_id'] => $optionValueId))); $info = $this->_model->getSelectedAttributesInfo($this->_product); $this->assertEquals(array(array('label' => 'Test Configurable', 'value' => 'Option 1')), $info); }