Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * @expectedException Mage_Core_Exception
  */
 public function testSetSkinWrongValue()
 {
     $this->_model->setSkin('wrong/skin/applied');
 }