public function testAssignProductToOption() { $option = new Varien_Object(); $this->_model->assignProductToOption('test', $option, $this->_product); $this->assertEquals('test', $option->getProduct()); // other branch of logic depends on Mage_Sales module }