File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
use Magento \Eav \Api \AttributeSetRepositoryInterface ;
11
11
use Magento \Eav \Model \AttributeSetRepository ;
12
+ use Magento \Framework \App \Config \ScopeConfigInterface ;
12
13
use Magento \TestFramework \Eav \Model \GetAttributeGroupByName ;
13
14
use Magento \TestFramework \Eav \Model \ResourceModel \GetEntityIdByAttributeId ;
14
15
@@ -34,6 +35,9 @@ class EavTest extends AbstractEavTest
34
35
*/
35
36
private $ setRepository ;
36
37
38
+ /** @var ScopeConfigInterface */
39
+ private $ config ;
40
+
37
41
/**
38
42
* @inheritdoc
39
43
*/
@@ -43,6 +47,7 @@ protected function setUp(): void
43
47
$ this ->attributeGroupByName = $ this ->objectManager ->get (GetAttributeGroupByName::class);
44
48
$ this ->getEntityIdByAttributeId = $ this ->objectManager ->get (GetEntityIdByAttributeId::class);
45
49
$ this ->setRepository = $ this ->objectManager ->get (AttributeSetRepositoryInterface::class);
50
+ $ this ->config = $ this ->objectManager ->get (ScopeConfigInterface::class);
46
51
}
47
52
48
53
/**
@@ -225,7 +230,10 @@ private function prepareAttributeSet(array $additional): void
225
230
*/
226
231
public function testModifyMetaNewProductPageLayoutDefault ($ attributesMeta ): void
227
232
{
228
- $ attributesMeta = array_merge ($ attributesMeta , ['default ' => '1column ' ]);
233
+ $ defaultLayout = $ this ->config ->getValue ('web/default_layouts/default_product_layout ' );
234
+ if ($ defaultLayout ) {
235
+ $ attributesMeta = array_merge ($ attributesMeta , ['default ' => $ defaultLayout ]);
236
+ }
229
237
$ expectedMeta = $ this ->addMetaNesting (
230
238
$ attributesMeta ,
231
239
'design ' ,
You can’t perform that action at this time.
0 commit comments