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 99
1010use Magento \Eav \Api \AttributeSetRepositoryInterface ;
1111use Magento \Eav \Model \AttributeSetRepository ;
12+ use Magento \Framework \App \Config \ScopeConfigInterface ;
1213use Magento \TestFramework \Eav \Model \GetAttributeGroupByName ;
1314use Magento \TestFramework \Eav \Model \ResourceModel \GetEntityIdByAttributeId ;
1415
@@ -34,6 +35,9 @@ class EavTest extends AbstractEavTest
3435 */
3536 private $ setRepository ;
3637
38+ /** @var ScopeConfigInterface */
39+ private $ config ;
40+
3741 /**
3842 * @inheritdoc
3943 */
@@ -43,6 +47,7 @@ protected function setUp(): void
4347 $ this ->attributeGroupByName = $ this ->objectManager ->get (GetAttributeGroupByName::class);
4448 $ this ->getEntityIdByAttributeId = $ this ->objectManager ->get (GetEntityIdByAttributeId::class);
4549 $ this ->setRepository = $ this ->objectManager ->get (AttributeSetRepositoryInterface::class);
50+ $ this ->config = $ this ->objectManager ->get (ScopeConfigInterface::class);
4651 }
4752
4853 /**
@@ -225,7 +230,10 @@ private function prepareAttributeSet(array $additional): void
225230 */
226231 public function testModifyMetaNewProductPageLayoutDefault ($ attributesMeta ): void
227232 {
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+ }
229237 $ expectedMeta = $ this ->addMetaNesting (
230238 $ attributesMeta ,
231239 'design ' ,
You can’t perform that action at this time.
0 commit comments