Skip to content

Commit a964a01

Browse files
committed
MC-42287: Items count is wrong on Category page
1 parent 1310d9a commit a964a01

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import/ProductTest/ProductOptionsTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ public function testSaveCustomOptions(string $importFile, string $sku, int $expe
127127
$customOptionValues = $this->getCustomOptionValues($sku);
128128
$this->createImportModel($pathToFile)->importData();
129129
$this->assertEquals($customOptionValues, $this->getCustomOptionValues($sku));
130+
131+
// Cleanup imported products
132+
try {
133+
$this->productRepository->delete($product);
134+
} catch (\Magento\Framework\Exception\NoSuchEntityException $e) {
135+
}
130136
}
131137

132138
/**

0 commit comments

Comments
 (0)