/** * Sets new skin for viewed store and returns customer back to the previous address */ public function skinAction() { $skin = $this->getRequest()->get('skin'); $backUrl = $this->_getRefererUrl(); try { $this->_session->setSkin($skin); } catch (Mage_Core_Exception $e) { $this->_session->addError($e->getMessage()); } $this->getResponse()->setRedirect($backUrl); }
/** * @expectedException Mage_Core_Exception */ public function testSetSkinWrongValue() { $this->_model->setSkin('wrong/skin/applied'); }