Esempio n. 1
0
 public function testApplyCustomDesign()
 {
     $this->_model->applyCustomDesign('package/theme/skin');
     $this->assertEquals('package', Mage::getDesign()->getPackageName());
     $this->assertEquals('theme', Mage::getDesign()->getTheme());
     $this->assertEquals('skin', Mage::getDesign()->getSkin());
 }
Esempio n. 2
0
 /**
  * @dataProvider getThemeModel
  */
 public function testApplyCustomDesign($theme)
 {
     $this->_model->applyCustomDesign($theme);
     $this->assertEquals('package', Mage::getDesign()->getDesignTheme()->getPackageCode());
     $this->assertEquals('theme', Mage::getDesign()->getDesignTheme()->getThemeCode());
 }