File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
dev/tests/integration/framework/Magento/TestFramework/App Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Application configuration object. Used to access configuration when application is initialized and installed.
4
- *
5
- * Copyright © Magento, Inc. All rights reserved.
6
- * See COPYING.txt for license details.
3
+ * Copyright 2016 Adobe
4
+ * All Rights Reserved.
7
5
*/
8
6
namespace Magento \TestFramework \App ;
9
7
@@ -70,14 +68,21 @@ public function setValue(
70
68
) {
71
69
$ result = $ this ->get ('system ' );
72
70
71
+ $ originalScope = $ scope ;
73
72
if ($ scope === 'store ' ) {
74
73
$ scope = 'stores ' ;
75
74
} elseif ($ scope === 'website ' ) {
76
75
$ scope = 'websites ' ;
77
76
}
78
77
79
78
if (empty ($ scopeCode )) {
80
- $ scopeCode = $ this ->getScopeCodeResolver ()->resolve ($ scope , $ scopeCode );
79
+ // Use original scope type for resolver, as it expects 'store'/'website', not 'stores'/'websites'
80
+ try {
81
+ $ scopeCode = $ this ->getScopeCodeResolver ()->resolve ($ originalScope , $ scopeCode );
82
+ } catch (\Exception $ e ) {
83
+ // If scope resolver fails (e.g., during app isolation), fallback to default scope code
84
+ $ scopeCode = null ;
85
+ }
81
86
}
82
87
83
88
$ keys = explode ('/ ' , $ path );
You can’t perform that action at this time.
0 commit comments