Commit 4a0ea002 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Merge pull request #207 from jzahedieh/jzahedieh/fix-204

fixes #204 getModelInstance() object to string
parents 2ac5c8bf fc9c410c
...@@ -124,11 +124,11 @@ class EcomDev_PHPUnit_Model_Config extends Mage_Core_Model_Config ...@@ -124,11 +124,11 @@ class EcomDev_PHPUnit_Model_Config extends Mage_Core_Model_Config
*/ */
public function getModelInstance($modelClass='', $constructArguments=array()) public function getModelInstance($modelClass='', $constructArguments=array())
{ {
if (!isset($this->_replaceInstanceCreation['model'][$modelClass])) { if (!isset($this->_replaceInstanceCreation['model'][(string)$modelClass])) {
return parent::getModelInstance($modelClass, $constructArguments); return parent::getModelInstance((string)$modelClass, $constructArguments);
} }
return $this->_replaceInstanceCreation['model'][$modelClass]; return $this->_replaceInstanceCreation['model'][(string)$modelClass];
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment