Example #1
0
 public function testGetCloneModelCreatesCloneModel()
 {
     $cloneModel = $this->getMock('Mage_Core_Model_Config_Data', array(), array(), '', false);
     $this->_depMapperMock = $this->getMock('Mage_Backend_Model_Config_Structure_Element_Dependency_Mapper', array(), array(), '', false);
     $this->_cloneFactoryMock->expects($this->once())->method('create')->with('clone_model_name')->will($this->returnValue($cloneModel));
     $this->_model->setData(array('clone_model' => 'clone_model_name'), 'scope');
     $this->assertEquals($cloneModel, $this->_model->getCloneModel());
 }