Skip to content

Commit 0c853d3

Browse files
glo80326glo71317
authored andcommitted
Code sniffer issue fixes
1 parent a529e24 commit 0c853d3

File tree

1 file changed

+4
-2
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Export

1 file changed

+4
-2
lines changed

dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Export/ProductTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ public function testExportWithJsonAndMarkupTextAttribute(string $attributeData,
132132
$attribute = $eavConfig->getAttribute(\Magento\Catalog\Model\Product::ENTITY, 'text_attribute');
133133
$attribute->setDefaultValue($attributeData);
134134
/** @var \Magento\Catalog\Api\ProductAttributeRepositoryInterface $productAttributeRepository */
135-
$productAttributeRepository = $objectManager->get(\Magento\Catalog\Api\ProductAttributeRepositoryInterface::class);
135+
$productAttributeRepository = $objectManager->get(
136+
\Magento\Catalog\Api\ProductAttributeRepositoryInterface::class
137+
);
136138
$productAttributeRepository->save($attribute);
137139
$product->setCustomAttribute('text_attribute', $attribute->getDefaultValue());
138140
$productRepository->save($product);
@@ -607,7 +609,7 @@ public function testExportProductWithTwoWebsites(): void
607609
$productAction->updateWebsites([$productId], [$secondStore->getWebsiteId()], 'add');
608610
$product->setStoreId($secondStore->getId());
609611
$product->setPrice('9.99');
610-
$product->getResource()->save($product);
612+
$this->productRepository->save($product);
611613

612614
$exportData = $this->model->export();
613615

0 commit comments

Comments
 (0)