From 12fc7c0723330b93c515c97f343c95c216531153 Mon Sep 17 00:00:00 2001 From: tantau-limora Date: Tue, 4 Aug 2015 09:08:51 +0200 Subject: [PATCH] Reset _configCache for Mage::app()->getStore() Reset _configCache for Mage::app()->getStore() because it might not by in Mage::app()->getStores(true). Mage::app()->getStore() might get it's store from _currentStore, which is sometimes an object that is sometimes not retrieved through Mage::app()->getStores(true). --- .../EcomDev/PHPUnit/Model/Fixture/Processor/Config.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/code/community/EcomDev/PHPUnit/Model/Fixture/Processor/Config.php b/app/code/community/EcomDev/PHPUnit/Model/Fixture/Processor/Config.php index 0171d8e9..dfc3574b 100644 --- a/app/code/community/EcomDev/PHPUnit/Model/Fixture/Processor/Config.php +++ b/app/code/community/EcomDev/PHPUnit/Model/Fixture/Processor/Config.php @@ -77,6 +77,10 @@ protected function _applyConfig($configuration) $store, '_configCache', array() ); } + $store = Mage::app()->getStore(); + EcomDev_Utils_Reflection::setRestrictedPropertyValue( + $store, '_configCache', array() + ); return $this; } @@ -151,6 +155,10 @@ protected function _restoreConfig() $store, '_configCache', array() ); } + $store = Mage::app()->getStore(); + EcomDev_Utils_Reflection::setRestrictedPropertyValue( + $store, '_configCache', array() + ); return $this; }