Skip to content

Commit 0e75d2d

Browse files
committed
#18668: Fixed store reinitialization on projects with plugins on \Magento\TestFramework\App\Config
1 parent 8cdefb0 commit 0e75d2d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dev/tests/integration/framework/Magento/TestFramework/Store/StoreManager.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,13 @@ public function reinitStores()
128128
//In order to restore configFixture values
129129
$testAppConfig = ObjectManager::getInstance()->get(Config::class);
130130
$reflection = new \ReflectionClass($testAppConfig);
131-
$dataProperty = $reflection->getProperty('data');
131+
132+
if (\substr($reflection->getName(), -12) === '\Interceptor') {
133+
$dataProperty = $reflection->getParentClass()->getProperty('data');
134+
} else {
135+
$dataProperty = $reflection->getProperty('data');
136+
}
137+
132138
$dataProperty->setAccessible(true);
133139
$savedConfig = $dataProperty->getValue($testAppConfig);
134140

0 commit comments

Comments
 (0)