Commit 2b22f38f authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Merge pull request #226 from johnholden/master

Really truly clear config cache on discard fixtures
parents 1cd444fe a2a03e03
......@@ -139,6 +139,19 @@ class EcomDev_PHPUnit_Model_Fixture_Processor_Config
{
Mage::getConfig()->loadScopeSnapshot();
Mage::getConfig()->loadDb();
// Flush website and store configuration caches
foreach (Mage::app()->getWebsites(true) as $website) {
EcomDev_Utils_Reflection::setRestrictedPropertyValue(
$website, '_configCache', array()
);
}
foreach (Mage::app()->getStores(true) as $store) {
EcomDev_Utils_Reflection::setRestrictedPropertyValue(
$store, '_configCache', array()
);
}
return $this;
}
......@@ -165,4 +178,4 @@ class EcomDev_PHPUnit_Model_Fixture_Processor_Config
}
}
\ No newline at end of file
}
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